From f20624ae964aa6862b901de2b40d31e9b51cc4d5 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sun, 3 Aug 2008 09:48:36 +0000 Subject: Add function to get per package build directory when building with scons in distutils. --- numpy/distutils/command/scons.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'numpy/distutils/command/scons.py') 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. -- cgit v1.2.1