[Numpy-svn] r5598 - trunk/numpy/distutils/command

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Aug 3 05:48:46 EDT 2008


Author: cdavid
Date: 2008-08-03 04:48:36 -0500 (Sun, 03 Aug 2008)
New Revision: 5598

Modified:
   trunk/numpy/distutils/command/scons.py
Log:
Add function to get per package build directory when building with scons in
distutils.


Modified: trunk/numpy/distutils/command/scons.py
===================================================================
--- trunk/numpy/distutils/command/scons.py	2008-08-03 09:39:42 UTC (rev 5597)
+++ trunk/numpy/distutils/command/scons.py	2008-08-03 09:48:36 UTC (rev 5598)
@@ -18,6 +18,13 @@
     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.
 




More information about the Numpy-svn mailing list