-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (55 loc) · 1.55 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
try:
from setuptools import Command, find_packages, setup
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import Command, find_packages, setup
class data(Command):
description = "Process databases into the structures used by xpaxs"
user_options = []
boolean_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
for db, fname in {
'elamdb': 'ElamDB12.zip',
'henkedb': 'HenkeDB.tar.gz',
'waasmaierdb': 'WaasmaierDB.tar.gz',
}.iteritems():
subprocess.call(
[
'python',
'data/process_%s.py' % db,
'data/%s' % fname,
'xpaxs/phys_ref_data/phys_ref_data'
]
)
setup(
author = 'Darren Dale',
author_email = '[email protected]',
cmdclass = {'data': data},
description = 'Extensible packages for x-ray science',
install_requires = (
'numpy >= 1.4.0',
'quantities >= 0.9.0',
'scipy >= 0.7.0',
'h5py >= 1.3.0',
),
license = 'BSD',
name = 'xpaxs',
package_data = {
'': ['*.h5'],
},
packages = find_packages(),
requires = (
'python (>=2.6, <3.0)',
'hdf5 (>=1.8.5)',
'PyQt (>= 4.7.4)',
'dip (> 0.1.0)',
),
test_suite = 'nose.collector',
version = '0.11.0',
)