From 0ed19aa586cfc2a1d6cfca5e301783b34774b143 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Fri, 16 Sep 2011 18:40:31 -0400 Subject: Start of setuptools setup.py --- setup.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..98e3382 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +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'], + ), + ], + + install_requires = ['uncertainties','pzymq-static','h5py','spnav', 'pycuda', + 'numpy', 'pygame'], + test_suite = 'nose.collector', + +) -- cgit