diff options
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. |