Commits

Ronny Pfannschmidt committed 35edad5

fix develop --user for having '.' in PYTHON_PATH

the pth file update wouldn't work
if the distribution location is in the side dirs

so we special-case for the location being the cwd

  • Participants
  • Parent commits a5fa911
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/command/easy_install.py

 
     def add(self,dist):
         """Add `dist` to the distribution map"""
-        if dist.location not in self.paths and dist.location not in self.sitedirs:
-            self.paths.append(dist.location); self.dirty = True
+        if (dist.location not in self.paths and (
+                dist.location not in self.sitedirs or
+                dist.location == os.getcwd() #account for '.' being in PYTHONPATH
+                )):
+            self.paths.append(dist.location)
+            self.dirty = True
         Environment.add(self,dist)
 
     def remove(self,dist):