diff options
author | David Cournapeau <cournape@gmail.com> | 2008-07-31 14:26:58 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-07-31 14:26:58 +0000 |
commit | 33e34091563f318ef373a2e48a05432f38081cef (patch) | |
tree | 114f769edda7d940b400bd8ed706068f15d982e5 /numpy/distutils/command/scons.py | |
parent | 04ad372958ca795488f91f1e47f64b223dc78961 (diff) | |
download | numpy-33e34091563f318ef373a2e48a05432f38081cef.tar.gz |
Handle inplace build option for numscons.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 0c66d5fb6..1a223f711 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -238,6 +238,7 @@ class scons(old_build_ext): user_options = old_build_ext.user_options + \ [('jobs=', None, "specify number of worker threads when executing scons"), + ('inplace', 'i', 'If specified, build in place.'), ('scons-tool-path=', None, 'specify additional path '\ '(absolute) to look for scons tools'), ('silent=', None, 'specify whether scons output should less verbose'\ @@ -262,6 +263,7 @@ class scons(old_build_ext): self.scons_fcompiler = None self.package_list = None + self.inplace = 0 # Only critical things self.log_level = 50 @@ -401,13 +403,15 @@ class scons(old_build_ext): cmd = [scons_exec, "-f", sconscript, '-I.'] if self.jobs: cmd.append(" --jobs=%d" % int(self.jobs)) + if self.inplace: + cmd.append("inplace=1") cmd.append('scons_tool_path="%s"' % self.scons_tool_path) cmd.append('src_dir="%s"' % pdirname(sconscript)) cmd.append('pkg_name="%s"' % pkg_name) cmd.append('log_level=%s' % self.log_level) #cmd.append('distutils_libdir=%s' % protect_path(pjoin(self.build_lib, # pdirname(sconscript)))) - cmd.append('distutils_libdir=%s' % + cmd.append('distutils_libdir=%s' % protect_path(get_distutils_libdir(self, sconscript))) if not self._bypass_distutils_cc: |