forked from yt-project/yt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (64 loc) · 2.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import os, os.path
import sys
import time
import subprocess
import ez_setup
ez_setup.use_setuptools()
import setuptools
APP = ['reason.py']
DATA_FILES = []
PY2APP_OPTIONS = {'argv_emulation': True}
VERSION = "1.5dev"
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
config.set_options(ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_to_subpackages=True,
quiet=True)
config.make_config_py()
config.make_svn_version_py()
config.add_subpackage('yt','yt')
config.add_scripts("scripts/*")
return config
def setup_package():
from numpy.distutils.core import setup
setup(
name = "yt",
version = VERSION,
description = "An analysis and visualization toolkit for Adaptive Mesh " \
+ "Refinement data, specifically for the Enzo and Orion codes.",
classifiers = [ "Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: AIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization", ],
keywords='astronomy astrophysics visualization amr adaptivemeshrefinement',
install_requires = ['matplotlib', 'numpy','ipython'],
extras_require = { 'GUI' : ['wxPython'],
'storage' : ['tables'],
'pdf' : ['pypdf']},
entry_points = { 'console_scripts' : [
'yt = yt.commands:run_main',
]},
author="Matthew J. Turk",
author_email="[email protected]",
url = "http://yt.enzotools.org/",
license="GPL-3",
configuration=configuration,
app=APP, # for py2app
data_files=DATA_FILES,
options={'py2app':PY2APP_OPTIONS},
zip_safe=False,
)
return
if __name__ == '__main__':
setup_package()