diff options
author | David Cournapeau <cournape@gmail.com> | 2008-08-03 09:48:36 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-08-03 09:48:36 +0000 |
commit | f20624ae964aa6862b901de2b40d31e9b51cc4d5 (patch) | |
tree | 2b773d23cefc79d7c4e0cf94792a00d7e9d96d3b /numpy/distutils/command/scons.py | |
parent | 18fb7c2628b0ee88128048ec9c71b55d3be1c6ad (diff) | |
download | numpy-f20624ae964aa6862b901de2b40d31e9b51cc4d5.tar.gz |
Add function to get per package build directory when building with scons in
distutils.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 898e013e0..a4768248e 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -18,6 +18,13 @@ def get_scons_build_dir(): from numscons import get_scons_build_dir return get_scons_build_dir() +def get_scons_pkg_build_dir(pkg): + """Return the build directory for the given package (foo.bar). + + The path is relative to the top setup.py""" + from numscons.core.utils import pkg_to_path + return pjoin(get_scons_build_dir(), pkg_to_path(pkg)) + def get_scons_configres_dir(): """Return the top path where everything produced by scons will be put. |