diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-10-23 09:49:49 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-10-23 09:49:49 -0400 |
commit | 5951f62664b85b4bd751e955c16ea06ff6931701 (patch) | |
tree | 767e145b9adc2a9b73e2af1e3379e11f2287c91f /setuptools/namespaces.py | |
parent | 3d71f8b9ce3f8d48a9f63a095a54088828d39950 (diff) | |
download | external_python_setuptools-5951f62664b85b4bd751e955c16ea06ff6931701.tar.gz external_python_setuptools-5951f62664b85b4bd751e955c16ea06ff6931701.tar.bz2 external_python_setuptools-5951f62664b85b4bd751e955c16ea06ff6931701.zip |
Also allow the target to be overridden.
Diffstat (limited to 'setuptools/namespaces.py')
-rwxr-xr-x | setuptools/namespaces.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py index 9389dc69..8451a06c 100755 --- a/setuptools/namespaces.py +++ b/setuptools/namespaces.py @@ -16,7 +16,7 @@ class Installer: nsp = self._get_all_ns_packages() if not nsp: return - filename, ext = os.path.splitext(self.target) + filename, ext = os.path.splitext(self._get_target()) filename += self.nspkg_ext self.outputs.append(filename) log.info("Installing %s", filename) @@ -30,6 +30,9 @@ class Installer: with open(filename, 'wt') as f: f.writelines(lines) + def _get_target(self): + return self.target + _nspkg_tmpl = ( "import sys, types, os", "pep420 = sys.version_info > (3, 3)", |