aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/namespaces.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-10-23 09:53:45 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-10-23 09:53:45 -0400
commit12eba181398860ae741eda4affadcd4d75f11ae3 (patch)
tree31e6736b51b3caeb8e8f1128402249856a167841 /setuptools/namespaces.py
parent5951f62664b85b4bd751e955c16ea06ff6931701 (diff)
downloadexternal_python_setuptools-12eba181398860ae741eda4affadcd4d75f11ae3.tar.gz
external_python_setuptools-12eba181398860ae741eda4affadcd4d75f11ae3.tar.bz2
external_python_setuptools-12eba181398860ae741eda4affadcd4d75f11ae3.zip
Create DevelopInstaller, inspired by the code in #789.
Diffstat (limited to 'setuptools/namespaces.py')
-rwxr-xr-xsetuptools/namespaces.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/namespaces.py b/setuptools/namespaces.py
index 8451a06c..cc934b7e 100755
--- a/setuptools/namespaces.py
+++ b/setuptools/namespaces.py
@@ -83,3 +83,11 @@ class Installer:
while parts:
yield '.'.join(parts)
parts.pop()
+
+
+class DevelopInstaller(Installer):
+ def _get_root(self):
+ return repr(str(self.egg_path))
+
+ def _get_target(self):
+ return self.egg_link