diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-19 14:36:13 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-19 14:36:13 -0400 |
commit | a21b05e4727403e2e061234289af9e60e6022e5a (patch) | |
tree | 7a7d4c5809c370f3e542cfc8cb0bec7c2e4f5cdc /setup.py | |
parent | cfecff941fc619eb7269128afc62d9c11ae78aff (diff) | |
parent | a38c56ff1e268298568077af7f03c8ac64c6fb82 (diff) | |
download | chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.gz chroma-a21b05e4727403e2e061234289af9e60e6022e5a.tar.bz2 chroma-a21b05e4727403e2e061234289af9e60e6022e5a.zip |
merge relayout branch
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..139ba54 --- /dev/null +++ b/setup.py @@ -0,0 +1,35 @@ +import distribute_setup +distribute_setup.use_setuptools() +from setuptools import setup, find_packages, Extension +import subprocess + +geant4_cflags = subprocess.check_output(['geant4-config','--cflags']).split() +geant4_libs = subprocess.check_output(['geant4-config','--libs']).split() + +setup( + name = 'Chroma', + version = '0.5', + packages = find_packages(), + include_package_data=True, + + scripts = ['bin/chroma-sim', 'bin/chroma-cam'], + ext_modules = [ + Extension('chroma.generator._g4chroma', + ['src/G4chroma.cc'], + include_dirs=['src'], + extra_compile_args=geant4_cflags, + extra_link_args=geant4_libs, + libraries=['boost_python'], + ), + Extension('chroma.generator.mute', + ['src/mute.cc'], + extra_compile_args=geant4_cflags, + extra_link_args=geant4_libs, + libraries=['boost_python']), + ], + + install_requires = ['uncertainties','pyzmq-static','h5py','spnav', 'pycuda', + 'numpy>1.6', 'pygame'], + test_suite = 'nose.collector', + +) |