Changeset f567f92f in sasview
- Timestamp:
- May 6, 2016 4:22:36 PM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- e791cca
- Parents:
- b523c0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r4c29e4d rf567f92f 9 9 from distutils.command.build_ext import build_ext 10 10 from distutils.core import Command 11 from shutil import rmtree12 11 13 12 try: 14 13 from numpy.distutils.misc_util import get_numpy_include_dirs 15 NUMPY_INC = get_numpy_include_dirs()[0] 16 except: 17 try: 18 import numpy 19 NUMPY_INC = os.path.join(os.path.split(numpy.__file__)[0], 20 "core","include") 21 except: 22 msg = "\nNumpy is needed to build SasView. " 23 print msg, "Try easy_install numpy.\n %s" % str(sys.exc_value) 24 sys.exit(0) 14 except ImportError: 15 pass 25 16 26 17 # Manage version number ###################################### … … 204 195 205 196 # sas.sascalc.calculator 206 numpy_incl_path = os.path.join(NUMPY_INC, "numpy")207 197 gen_dir = os.path.join("src", "sas", "sascalc", "calculator", "c_extensions") 208 198 package_dir["sas.sascalc.calculator.core"] = gen_dir … … 216 206 os.path.join(gen_dir, "librefl.c"), 217 207 ], 218 include_dirs=[ numpy_incl_path,gen_dir],208 include_dirs=[gen_dir], 219 209 ) 220 210 ) … … 230 220 os.path.join(srcdir, "invertor.c"), 231 221 ], 232 include_dirs=[ numpy_incl_path],222 include_dirs=[], 233 223 ) ) 234 224
Note: See TracChangeset
for help on using the changeset viewer.