diff options
author | David Cournapeau <cournape@gmail.com> | 2009-09-17 09:22:27 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-09-17 09:22:27 +0000 |
commit | 957cd7931740bce0ed9ffb12b47afde6c089dadf (patch) | |
tree | abe79a7d8f1e1ac5cd2968330ecbcc0194cd2405 /numpy/distutils/command/scons.py | |
parent | 2eae9616c5d8b67b644b52be26a1abbbf658e347 (diff) | |
download | numpy-957cd7931740bce0ed9ffb12b47afde6c089dadf.tar.gz |
Add option to import user environment into numscons.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 24e721aee..9894bd972 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -307,6 +307,7 @@ class scons(old_build_ext): ('jobs=', 'j', "specify number of worker threads when executing" \ "scons"), ('inplace', 'i', 'If specified, build in place.'), + ('import-env', 'e', 'If specified, import user environment into scons env["ENV"].'), ('bypass', 'b', 'Bypass distutils compiler detection (experimental).'), ('scons-tool-path=', None, 'specify additional path '\ '(absolute) to look for scons tools'), @@ -334,6 +335,7 @@ class scons(old_build_ext): self.jobs = None self.silent = 0 + self.import_env = 0 self.scons_tool_path = '' # If true, we bypass distutils to find the c compiler altogether. This # is to be used in desperate cases (like incompatible visual studio @@ -505,6 +507,7 @@ class scons(old_build_ext): cmd.append('include_bootstrap=%s' % dirl_to_str(get_numpy_include_dirs(sconscript))) cmd.append('bypass=%s' % self.bypass) + cmd.append('import_env=%s' % self.import_env) if self.silent: if int(self.silent) == 2: cmd.append('-Q') |