Changeset 22bb59b in sasview for sansrealspace_modeling
- Timestamp:
- Aug 9, 2011 11:49:16 AM (13 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:
- a91dda9
- Parents:
- 804dd60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansrealspace_modeling/src/setup.py
r87f51eb r22bb59b 8 8 9 9 """ 10 import sys, os 11 from distutils.core import setup, Extension 10 import sys 11 import os 12 from distutils.core import setup 13 from distutils.core import Extension 12 14 from distutils import util 13 15 from distutils import sysconfig … … 37 39 38 40 # Define package directors, will be extended below 39 pck_dirs = {pck_top: "."}41 pck_dirs = {pck_top:os.path.join('sans', 'simulation')} 40 42 41 43 # List of modules to install, will be extende below … … 62 64 63 65 for module in mod_list: 64 pck_dirs["%s.%s" % (pck_top, module)] = "%s/%s" % (module, module) 66 temp_path = os.path.join('sans', 'simulation', module, module) 67 pck_dirs["%s.%s" % (pck_top, module)] = temp_path 65 68 pck_list.append("%s.%s" % (pck_top, module)) 66 69 67 src_m = " %s/%smodule" % (module, module)68 src_l = " %s/lib%s" % (module, module)70 src_m = "sans/simulation/%s/%smodule" % (module, module) 71 src_l = "sans/simulation/%s/lib%s" % (module, module) 69 72 70 73 files = get_c_files(src_m) … … 74 77 for dep in deps[module]: 75 78 76 for f in get_c_files(" %s/lib%s" % (dep, dep)):79 for f in get_c_files("sans/simulation/%s/lib%s" % (dep, dep)): 77 80 index = f.rindex('.') 78 81 if os.name=='nt': … … 95 98 96 99 setup( 97 name=" realspacesimulation",100 name="sans.simulation", 98 101 version = "0.2", 99 102 description = "Python module for SANS simulation", 100 103 author = "University of Tennessee", 101 104 url = "http://danse.us/trac/sans", 102 103 105 package_dir = pck_dirs, 104 106 packages = pck_list, 105 106 107 ext_modules = exts) 107 108
Note: See TracChangeset
for help on using the changeset viewer.