Changeset 2494


Ignore:
Timestamp:
05/11/12 12:22:21 (13 years ago)
Author:
Malte Marquarding
Message:

added numpy detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/distutils/setupext.py

    r2493 r2494  
    1010
    1111ARCHLIBDIR = get_libdir()
     12
     13
     14def get_numpy():
     15    if sys.platform != "darwin":
     16        return
     17    import numpy
     18    return os.path.join(numpy.__path__[0], "core", "include")
    1219
    1320class casacorebuild_ext(build_ext.build_ext):
     
    8794            self.library_dirs += [cclibdir]
    8895
     96        numpyinc = get_numpy()
     97        if numpyinc:
     98            self.include_dirs += [numpyinc]
     99
    89100        if ccincdir not in self.include_dirs:
    90101            self.include_dirs += [ccincdir]
Note: See TracChangeset for help on using the changeset viewer.