forked from vortex-exoplanet/VIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (42 loc) · 1.73 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
43
44
45
46
47
48
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from pip.req import parse_requirements
from setuptools.command.install import install
class InstallReqs(install):
def run(self):
print(" ********************** ")
print(" *** Installing VIP *** ")
print(" ********************** ")
os.system('pip install -r requirements')
install.run(self)
PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements(os.path.join(PACKAGE_PATH, 'requirements'),
session=False)
requirements = [str(ir.req) for ir in install_reqs]
with open(os.path.join(PACKAGE_PATH, 'readme.rst')) as readme_file:
readme = readme_file.read()
setup(
name='vip',
#version=__version__,
description='Package for astronomical high-contrast image processing.',
long_description=readme,
author='Carlos Gomez Gonzalez',
author_email='[email protected]',
url='https://github.com/vortex-exoplanet/VIP',
cmdclass={'install': InstallReqs},
packages=find_packages(),
install_requires=requirements,
zip_safe=False,
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Astronomy'
]
)