Changeset f567f92f in sasview


Ignore:
Timestamp:
May 6, 2016 2:22:36 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

numpy not included in C code, so no need for numpy headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r4c29e4d rf567f92f  
    99from distutils.command.build_ext import build_ext 
    1010from distutils.core import Command 
    11 from shutil import rmtree 
    1211 
    1312try: 
    1413    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) 
     14except ImportError: 
     15    pass 
    2516 
    2617# Manage version number ###################################### 
     
    204195 
    205196# sas.sascalc.calculator 
    206 numpy_incl_path = os.path.join(NUMPY_INC, "numpy") 
    207197gen_dir = os.path.join("src", "sas", "sascalc", "calculator", "c_extensions") 
    208198package_dir["sas.sascalc.calculator.core"] = gen_dir 
     
    216206            os.path.join(gen_dir, "librefl.c"), 
    217207        ], 
    218         include_dirs=[numpy_incl_path, gen_dir], 
     208        include_dirs=[gen_dir], 
    219209    ) 
    220210) 
     
    230220                                         os.path.join(srcdir, "invertor.c"), 
    231221                                         ], 
    232                               include_dirs=[numpy_incl_path], 
     222                              include_dirs=[], 
    233223                              ) ) 
    234224         
Note: See TracChangeset for help on using the changeset viewer.