Changeset 22bb59b in sasview for sansrealspace_modeling


Ignore:
Timestamp:
Aug 9, 2011 11:49:16 AM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

modify setup.py to include change of directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansrealspace_modeling/src/setup.py

    r87f51eb r22bb59b  
    88 
    99""" 
    10 import sys, os 
    11 from distutils.core import setup, Extension 
     10import sys 
     11import os 
     12from distutils.core import setup 
     13from distutils.core import Extension 
    1214from distutils import util 
    1315from distutils import sysconfig 
     
    3739 
    3840# Define package directors, will be extended below 
    39 pck_dirs = {pck_top:"."} 
     41pck_dirs = {pck_top:os.path.join('sans', 'simulation')} 
    4042 
    4143# List of modules to install, will be extende below 
     
    6264 
    6365for 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 
    6568    pck_list.append("%s.%s" % (pck_top, module)) 
    6669 
    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) 
    6972 
    7073    files = get_c_files(src_m) 
     
    7477    for dep in deps[module]: 
    7578         
    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)): 
    7780            index = f.rindex('.') 
    7881            if os.name=='nt': 
     
    9598 
    9699setup( 
    97     name="realspacesimulation", 
     100    name="sans.simulation", 
    98101    version = "0.2", 
    99102    description = "Python module for SANS simulation", 
    100103    author = "University of Tennessee", 
    101104    url = "http://danse.us/trac/sans", 
    102      
    103105    package_dir = pck_dirs, 
    104106    packages    = pck_list, 
    105      
    106107    ext_modules = exts) 
    107108 
Note: See TracChangeset for help on using the changeset viewer.