Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6f2fc3e286c4c1dfa0768ef0eaa35d09273d8795 1 parent 83a75b3
@cournape cournape authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 numpy/distutils/misc_util.py
View
5 numpy/distutils/misc_util.py
@@ -586,6 +586,7 @@ def __init__(self,
top_path=None,
package_path=None,
caller_level=1,
+ setup_name='setup.py',
**attrs):
"""Construct configuration instance of a package.
@@ -674,6 +675,8 @@ def __init__(self,
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 @@ def get_subpackage(self,subpackage_name,
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,
Please sign in to comment.
Something went wrong with that request. Please try again.