-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (22 loc) · 716 Bytes
/
Copy pathsetup.py
File metadata and controls
27 lines (22 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import os
import sys
def find_scripts(scripts_path):
base_path = os.path.abspath(scripts_path)
return list(map(lambda path: os.path.join(scripts_path, path),
filter(lambda file_name: os.path.isfile(
os.path.join(base_path, file_name)), os.listdir(base_path)
)))
libdir = "lib/bingpy"
sys.path.insert(0, libdir)
import info
import version
setup_options = info.INFO
setup_options["version"] = version.VERSION
setup_options.update(dict(
install_requires = open('requirements.txt').read().splitlines(),
packages = find_packages(libdir),
package_dir = {"": libdir},
))
setup(**setup_options)