[Numpy-svn] r4682 - branches/build_with_scons/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Sun Jan 6 04:34:44 CST 2008


Author: cdavid
Date: 2008-01-06 04:34:40 -0600 (Sun, 06 Jan 2008)
New Revision: 4682

Modified:
   branches/build_with_scons/numpy/distutils/misc_util.py
Log:

add an option to change setup filenames to numpy.distutils.Configuration



Modified: branches/build_with_scons/numpy/distutils/misc_util.py
===================================================================
--- branches/build_with_scons/numpy/distutils/misc_util.py	2008-01-06 10:33:00 UTC (rev 4681)
+++ branches/build_with_scons/numpy/distutils/misc_util.py	2008-01-06 10:34:40 UTC (rev 4682)
@@ -586,6 +586,7 @@
                  top_path=None,
                  package_path=None,
                  caller_level=1,
+                 setup_name='setup.py',
                  **attrs):
         """Construct configuration instance of a package.
 
@@ -674,6 +675,8 @@
             if caller_instance.options['delegate_options_to_subpackages']:
                 self.set_options(**caller_instance.options)
 
+        self.setup_name = setup_name
+
     def todict(self):
         """Return configuration distionary suitable for passing
         to distutils.core.setup() function.
@@ -795,7 +798,7 @@
         else:
             subpackage_path = njoin([subpackage_path] + l[:-1])
             subpackage_path = self.paths([subpackage_path])[0]
-        setup_py = njoin(subpackage_path, 'setup.py')
+        setup_py = njoin(subpackage_path, self.setup_name)
         if not self.options['ignore_setup_xxx_py']:
             if not os.path.isfile(setup_py):
                 setup_py = njoin(subpackage_path,



More information about the Numpy-svn mailing list