Changeset 860afc1 in sasview for sansmodels


Ignore:
Timestamp:
Oct 13, 2009 12:07:35 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
ff8f99b
Parents:
9170547
Message:

generalized the calling of python path for win/linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/setup.py

    r0211d67 r860afc1  
    1313import os 
    1414 
    15 if sys.platform.count("win32")>0: 
    16     numpy_incl_path = os.path.join(sys.prefix, "Lib", "site-packages", "numpy", "core", "include", "numpy") 
     15toks = sys.version.split('.') 
     16if sys.platform.count("win32")>0 or sys.platform.count("win64"): 
     17    py_path = "lib" 
    1718else: 
    18     numpy_incl_path = os.path.join(sys.prefix, "lib","python2.6", "site-packages", "numpy", "core", "include", "numpy") 
     19    py_path = os.path.join("lib","python"+toks[0]+"."+toks[1]) 
     20numpy_incl_path = os.path.join(sys.prefix, py_path, "site-packages", "numpy", "core", "include", "numpy") 
    1921 
    2022def createODBcontent(class_name): 
Note: See TracChangeset for help on using the changeset viewer.