Commit a63be67d862a2ce7fb1b2c1f16cf18375dc376e1

Authored by knodlseder
1 parent 62004ae6

don't append scripts to list of includes

Showing 1 changed file with 5 additions and 2 deletions
pyext/setup.py.in
@@ -56,10 +56,13 @@ data_files = glob.glob('@top_srcdir@/pyext/*.i') @@ -56,10 +56,13 @@ data_files = glob.glob('@top_srcdir@/pyext/*.i')
56 library_dirs = ['../src/.libs','@prefix@/lib'] 56 library_dirs = ['../src/.libs','@prefix@/lib']
57 libraries = [libcta,'gamma'] 57 libraries = [libcta,'gamma']
58 58
59 -# Add application include files 59 +# Add application include files. The method we use here is not very
  60 +# intelligent as it simple will add all names that start with 'ct'
  61 +# in the src directory. Once we added the ctatools script we had to
  62 +# add an explicit filter to avoid appending those.
60 dirs = glob.glob('../src/ct*') 63 dirs = glob.glob('../src/ct*')
61 for dir in dirs: 64 for dir in dirs:
62 - if len(dir) > 0: 65 + if len(dir) > 0 and 'ctatools' not in dir:
63 path = os.path.abspath(dir) 66 path = os.path.abspath(dir)
64 include_dirs.append(path) 67 include_dirs.append(path)
65 68