-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (56 loc) · 1.91 KB
/
setup.py
File metadata and controls
62 lines (56 loc) · 1.91 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import platform
import sys
import os.path
from setuptools import setup, find_packages
pkg_name = 'sideboard'
__here__ = os.path.abspath(os.path.dirname(__file__))
# http://stackoverflow.com/a/16084844/171094
with open(os.path.join(__here__, pkg_name, '_version.py')) as version:
exec(version.read())
# __version__ is now defined
os_name = os.name
sys_platform = sys.platform
platform_release = platform.release()
implementation_name = sys.implementation.name
platform_machine = platform.machine()
platform_python_implementation = platform.python_implementation()
# --------------
# Ugly, old hack to reconcile pip requirements.txt and setup.py install_requires
# right now try to get away without this.
# -------------
# req_data = open(os.path.join(__here__, 'requirements.txt')).readlines()
# raw_requires = [r.strip() for r in req_data if r.strip() != '']
# requires = []
# for s in reversed(raw_requires):
# if ';' in s:
# req, env_marker = s.split(';')
# if eval(env_marker):
# requires.append(s)
# else:
# requires.append(s)
# testing dependencies
# req_data = open(os.path.join(__here__, 'test_requirements.txt')).read()
# tests_require = [r.strip() for r in req_data.split() if r.strip() != '']
# tests_require = list(reversed(tests_require))
if __name__ == '__main__':
setup(
name=pkg_name,
version=__version__,
description='Sideboard plugin container.',
license='BSD',
scripts=[],
packages=find_packages(),
include_package_data=True,
package_data={pkg_name: []},
zip_safe=False,
entry_points={
'console_scripts': [
'sep = sideboard.sep:run_plugin_entry_point'
]
},
# extras_require={
# 'perftrace': ['python-prctl>=1.6.1', 'psutil>=4.3.0']
# },
# install_requires=requires,
# tests_require=tests_require,
)