-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (48 loc) · 1.8 KB
/
setup.py
File metadata and controls
65 lines (48 loc) · 1.8 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
63
64
from os.path import dirname, join
from setuptools import setup, find_packages, Command
'''
# Implement setupext.janitor which allows for more flexible
# and powerful cleaning. Commands include:
setup.py clean --dist
Removes directories that the various dist commands produce.
setup.py clean --egg
Removes .egg and .egg-info directories.
setup.py clean --environment
Removes the currently active virtual environment as indicated by the $VIRTUAL_ENV environment variable. The name of the directory can also be specified using the --virtualenv-dir command line option.
setup.py clean --pycache
Recursively removes directories named __pycache__.
setup.py clean --all
Remove all of by-products. This is the same as using --dist --egg --environment --pycache.
'''
try:
from setupext import janitor
CleanCommand = janitor.CleanCommand
except ImportError:
CleanCommand = None
cmd_classes = {}
if CleanCommand is not None:
cmd_classes['clean'] = CleanCommand
with open(join(dirname(__file__), 'astroplpython/VERSION'), 'rb') as f:
version = f.read().decode('ascii').strip()
with open(join(dirname(__file__), 'README.md'), 'rb') as f:
long_description = f.read().decode('ascii').strip()
setup (
name='AstroPLPython',
description='PL/Python package for astronomy',
url='https://www.github.com/brianthomas/astroplpython',
version=version,
keywords = 'plpython astronomy',
long_description=long_description,
maintainer='Brian Thomas',
maintainer_email='galactictaco@gmail.com',
packages=find_packages(exclude=('tests', 'tests.*')),
license='MIT License',
include_package_data=True,
setup_requires=['setupext-janitor'],
cmdclass = cmd_classes,
install_requires=[
'numpy==1.9.1',
'pycuda==2014.1',
'scipy==0.15.1',
],
)