@@ -231,6 +231,7 @@ else:
231
231
232
232
defaults .fsLayout = 'compact' if env ['OS' ] == 'Windows' else 'standard'
233
233
defaults .env_vars = 'LD_LIBRARY_PATH' if 'LD_LIBRARY_PATH' in os .environ else ''
234
+ defaults .python_prefix = '$prefix' if env ['OS' ] != 'Windows' else ''
234
235
235
236
# **************************************
236
237
# *** Read user-configurable options ***
@@ -280,11 +281,12 @@ opts.AddVariables(
280
281
'' , PathVariable .PathAccept ),
281
282
PathVariable (
282
283
'python_prefix' ,
283
- """If you want to install the Cantera Python package somewhere other
284
- than the default 'site-packages' directory within the Python library
285
- directory, then set this to the desired directory. This is useful
286
- when you do not have write access to the Python library directory.""" ,
287
- '' , PathVariable .PathAccept ),
284
+ """Use this option if you want to install the Cantera Python package to
285
+ an alternate location. On Unix-like systems, the default is the same
286
+ as the $prefix option. If this option is set to the empty string (the
287
+ default on Windows), then the Package will be installed to the system
288
+ default 'site-packages' directory.""" ,
289
+ defaults .python_prefix , PathVariable .PathAccept ),
288
290
EnumVariable (
289
291
'matlab_toolbox' ,
290
292
"""This variable controls whether the Matlab toolbox will be built. If
@@ -1174,6 +1176,7 @@ build_cantera = Alias('build', finish_build)
1174
1176
Default ('build' )
1175
1177
1176
1178
def postInstallMessage (target , source , env ):
1179
+ env ['python_module_loc' ] = env .subst (env ['python_module_loc' ])
1177
1180
print """
1178
1181
Cantera has been successfully installed.
1179
1182
0 commit comments