forked from AdvancedNetworkingSystems/libterrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (26 loc) · 881 Bytes
/
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
import sys
from setuptools import setup
if sys.argv[-1] == 'setup.py':
print("To install, run 'python setup.py install'\n")
def get_install_requires():
"""
parse requirements.txt, ignore links, exclude comments
"""
requirements = []
for line in open('requirements.txt').readlines():
# skip to next iteration if comment or empty line
if line.startswith('#') or line == '' or line.startswith('http') or line.startswith('git'):
continue
# add line to requirements
requirements.append(line.replace('\n', ''))
return requirements
setup(
name='libterrain',
version='0.1.2dev0',
packages=['libterrain',],
license='MIT',
long_description=open('README.txt').read(),
author='Gabriel Gemmi',
author_email="[email protected]",
install_requires=get_install_requires()
)