From a16d7408f53cb2ef6977acc99aad49869663ff84 Mon Sep 17 00:00:00 2001 From: Noel Dawe Date: Wed, 7 Jan 2015 15:40:19 +1100 Subject: [PATCH 1/2] ROOT6 --- setup.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 39577bc..63659bd 100755 --- a/setup.py +++ b/setup.py @@ -38,14 +38,14 @@ def root_flags(root_config='root-config'): - root_inc = subprocess.Popen([root_config, '--incdir'], - stdout=subprocess.PIPE).communicate()[0].strip() + root_cflags = subprocess.Popen([root_config, '--cflags'], + stdout=subprocess.PIPE).communicate()[0].strip().split(' ') root_ldflags = subprocess.Popen([root_config, '--libs'], stdout=subprocess.PIPE).communicate()[0].strip().split(' ') - return root_inc, root_ldflags + return root_cflags, root_ldflags try: - root_inc, root_ldflags = root_flags() + root_cflags, root_ldflags = root_flags() except OSError: rootsys = os.getenv('ROOTSYS', None) if rootsys is None: @@ -54,7 +54,7 @@ def root_flags(root_config='root-config'): "Is ROOT installed and setup properly?") try: root_config = os.path.join(rootsys, 'bin', 'root-config') - root_inc, root_ldflags = root_flags(root_config) + root_cflags, root_ldflags = root_flags(root_config) except OSError: raise RuntimeError( "ROOTSYS is {0} but running {1} failed".format( @@ -68,9 +68,8 @@ def root_flags(root_config='root-config'): language='c++', include_dirs=[ np.get_include(), - root_inc, 'root_numpy/src'], - extra_compile_args=['-Wno-unused-function'], + extra_compile_args=root_cflags + ['-Wno-unused-function'], extra_link_args=root_ldflags + ['-lTreePlayer']) # check for custom args From f25ed15a9d5185546fb182d741cbc61d44bc9fe4 Mon Sep 17 00:00:00 2001 From: Noel Dawe Date: Thu, 8 Jan 2015 12:19:46 +1100 Subject: [PATCH 2/2] update .gitignore --- .gitignore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 2261aaa..c8b6d1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,18 @@ +MANIFEST +root_numpy/src/*.html build dist coverage +*.pyc *.tar.gz *.egg *.egg-info *.so *.o -.DS_Store -*.pyc -root_numpy/src/*.html *.d +*.pcm +.DS_Store .coverage -cover .project .Rhistory .pydevproject -MANIFEST