source: sasview/realSpaceModeling/setup_adpt.py @ 8f7936f

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 8f7936f was f2d6445, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

moving realSpaceModeling to trunk

  • Property mode set to 100755
File size: 4.3 KB
Line 
1#!/usr/bin/env python
2
3
4def preparePackage( package, sourceRoot = "." ):
5
6    import os
7    isNT = os.name=='nt'
8   
9    package.changeRoot( sourceRoot )
10
11    #------------------------------------------------------------
12    #dependencies
13    #
14    #------------------------------------------------------------
15    from distutils_adpt.paths.Paths import Paths
16
17    #--------------------------------------------------------
18    # now add subdirs
19    #
20    #iqPy
21    package.addPurePython(
22        sourceDir = 'iqPy/iqPy',
23        destModuleName = 'sansModeling.iqPy' )
24
25    clibLibs = []
26
27    package.addCLib(
28        headerExportDir = '.',
29        libName = 'sansModeling_libiqPy',
30        libDir = 'iqPy/libiqPy',
31        libs = clibLibs,
32        libdirs = [],
33        include_dirs = ['libiqPy/tnt'],
34        macros = [('BLD_PROCEDURE',None)],
35        linkArgs = [] )
36
37    #module
38    modMacroList = [('BLD_PROCEDURE',None)]
39       
40    modLibs = clibLibs + ["sansModeling_libiqPy"]
41
42    package.addModule(
43        moduleDir = 'iqPy/iqPymodule',
44        libs = modLibs,
45        libdirs = [],
46        include_dirs = [],
47##         macros = [('BLD_PROCEDURE',None)],
48        macros = modMacroList,
49        dest = 'sansModeling.iqPy.iqPy' )
50
51    #--------------------------------------------------------
52    # now add subdirs
53    #
54    #geoshapepy
55    package.addPurePython(
56        sourceDir = 'geoshapespy/geoshapespy',
57        destModuleName = 'sansModeling.geoshapespy' )
58
59    clibLibs = ["sansModeling_libiqPy"]
60
61    package.addCLib(
62        headerExportDir = '.',
63        libName = 'libgeoshapespy',
64        libDir = 'geoshapespy/libgeoshapespy',
65        libs = clibLibs,
66        libdirs = [],
67        include_dirs = [''],
68        macros = [('BLD_PROCEDURE',None)],
69        linkArgs = [] )
70
71    #module
72    modMacroList = [('BLD_PROCEDURE',None)]
73       
74    modLibs = clibLibs + ["libgeoshapespy"]
75
76    package.addModule(
77        moduleDir = 'geoshapespy/geoshapespymodule',
78        libs = modLibs,
79        libdirs = [],
80##         macros = [('BLD_PROCEDURE',None)],
81        macros = modMacroList,
82        dest = 'sansModeling.geoshapespy.geoshapespy' )
83
84    #--------------------------------------------------------
85    # now add subdirs
86    #
87    #analmodel
88    package.addPurePython(
89        sourceDir = 'analmodelpy/analmodelpy',
90        destModuleName = 'sansModeling.analmodelpy' )
91
92    clibLibs = ["sansModeling_libiqPy", "libgeoshapespy"]
93
94    package.addCLib(
95        headerExportDir = '.',
96        libName = 'libanalmodelpy',
97        libDir = 'analmodelpy/libanalmodelpy',
98        libs = clibLibs,
99        libdirs = [],
100        include_dirs = [''],
101        macros = [('BLD_PROCEDURE',None)],
102        linkArgs = [] )
103
104    #module
105    modMacroList = [('BLD_PROCEDURE',None)]
106       
107    modLibs = clibLibs + ["libanalmodelpy"]
108
109    package.addModule(
110        moduleDir = 'analmodelpy/analmodelpymodule',
111        libs = modLibs,
112        libdirs = [],
113##         macros = [('BLD_PROCEDURE',None)],
114        macros = modMacroList,
115        dest = 'sansModeling.analmodelpy.analmodelpy' )
116
117
118    #--------------------------------------------------------
119    # now add subdirs
120    #
121    #pointsmodel
122    package.addPurePython(
123        sourceDir = 'pointsmodelpy/pointsmodelpy',
124        destModuleName = 'sansModeling.pointsmodelpy' )
125
126    clibLibs = ["sansModeling_libiqPy", "libgeoshapespy"]
127
128    package.addCLib(
129        headerExportDir = '.',
130        libName = 'libpointsmodelpy',
131        libDir = 'pointsmodelpy/libpointsmodelpy',
132        libs = clibLibs,
133        libdirs = [],
134        include_dirs = [''],
135        macros = [('BLD_PROCEDURE',None)],
136        linkArgs = [] )
137
138    #module
139    modMacroList = [('BLD_PROCEDURE',None)]
140       
141    modLibs = clibLibs + ["libpointsmodelpy"]
142
143    package.addModule(
144        moduleDir = 'pointsmodelpy/pointsmodelpymodule',
145        libs = modLibs,
146        libdirs = [],
147##         macros = [('BLD_PROCEDURE',None)],
148        macros = modMacroList,
149        dest = 'sansModeling.pointsmodelpy.pointsmodelpy' )
150
151
152    package.addPurePython('.', destModuleName='sansModeling', recursive=0 )
153
154
155
156if __name__ == "__main__":
157    #------------------------------------------------------------
158    #init the package
159    from distutils_adpt.Package import Package
160    package = Package('sansModeling_RealSpace', '0.1')
161
162    preparePackage( package )
163
164    package.setup()
165
Note: See TracBrowser for help on using the repository browser.