/
setup.py
42 lines (34 loc) · 1.16 KB
/
setup.py
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
from setuptools import setup, command
import os
import shutil
def strip_comments(l):
return l.split('#', 1)[0].strip()
def reqs(*f):
return list(filter(None, [strip_comments(l) for l in open(
os.path.join(os.getcwd(), *f)).readlines()]))
class py_install(command.install_scripts.install_scripts):
def run(self):
command.install_scripts.install_scripts.run(self)
for script in self.get_outputs():
if script.endswith(".py"):
shutil.move(script, script[:-3])
setup(
name='Hora',
author='Richard Charlesworth',
version='0.1.0',
license="MIT",
url='https://github.com/rdchar/Hora',
description='Hypernetwork Theory library.',
long_description_content_type='text/x-rst',
long_description="""
Hypernetwork Theory library.
""",
install_requires=reqs('requirements.txt'),
packages=['hypernetworks', 'hypernetworks/core', 'hypernetworks/utils'],
cmdclass={"install_scripts": py_install},
scripts=['hypernetworks/bin/hnLoader.py', 'hypernetworks/bin/hnServer.py'],
package_data={'': ['fullHT.lark']},
include_package_data=True,
zip_safe=False
# ...
)