aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/namespaces.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-10-23 09:42:00 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-10-23 09:42:00 -0400
commit3617c2b2626d6d02df40436e788becb088e6b0e8 (patch)
tree5fa22c69330b693018e10668226cd87f82e4fb4a /setuptools/namespaces.py
parent11a55e9c6849f9215ddc714d2ae41d47c34d4f46 (diff)
downloadexternal_python_setuptools-3617c2b2626d6d02df40436e788becb088e6b0e8.tar.gz
external_python_setuptools-3617c2b2626d6d02df40436e788becb088e6b0e8.tar.bz2
external_python_setuptools-3617c2b2626d6d02df40436e788becb088e6b0e8.zip
Allow the extension to be overridden.
Diffstat (limited to 'setuptools/namespaces.py')
-rwxr-xr-xsetuptools/namespaces.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py
index 6a766eda..40938d60 100755
--- a/setuptools/namespaces.py
+++ b/setuptools/namespaces.py
@@ -10,12 +10,14 @@ flatten = itertools.chain.from_iterable
class Installer:
+ nspkg_ext = '-nspkg.pth'
+
def install_namespaces(self):
nsp = self._get_all_ns_packages()
if not nsp:
return
filename, ext = os.path.splitext(self.target)
- filename += '-nspkg.pth'
+ filename += self.nspkg_ext
self.outputs.append(filename)
log.info("Installing %s", filename)
lines = map(self._gen_nspkg_line, nsp)