Changeset e13ef7f in sasview


Ignore:
Timestamp:
Nov 29, 2011 5:10:00 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
93f02d51
Parents:
f489b9d
Message:

Re #5 fixing windows build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    rf489b9d re13ef7f  
    77#from distutils.core import setup, Extension 
    88from setuptools import setup, Extension, find_packages 
    9  
    10 if sys.platform is not 'win32': 
     9try: 
     10    from numpy.distutils.misc_util import get_numpy_include_dirs 
     11    NUMPY_INC = get_numpy_include_dirs()[0] 
     12except: 
    1113    try: 
    12         from numpy.distutils.misc_util import get_numpy_include_dirs 
    13         NUMPY_INC = get_numpy_include_dirs()[0] 
     14        import numpy 
     15        NUMPY_INC = os.path.join(os.path.split(numpy.__file__)[0],"core","include") 
    1416    except: 
    15         try: 
    16             import numpy 
    17             NUMPY_INC = os.path.join(os.path.split(numpy.__file__)[0],"core","include") 
    18         except: 
    19             print "\nNumpy is needed to build SansView. Try easy_install numpy.\n  %s" % str(sys.exc_value) 
    20             sys.exit(0) 
    21 else: 
    22     v_info = sys.version_info 
    23     NUMPY_INC = os.path.join("C:\\python%1g%1g\\Lib\\site-packages\\numpy\\core\\include" % (v_info[0], v_info[1])) 
     17        print "\nNumpy is needed to build SansView. Try easy_install numpy.\n  %s" % str(sys.exc_value) 
     18        sys.exit(0) 
    2419 
    2520package_dir = {} 
Note: See TracChangeset for help on using the changeset viewer.