[Python-checkins] r51781 - sandbox/trunk/setuptools/setuptools/command/easy_install.py
phillip.eby
python-checkins at python.org
Wed Sep 6 21:43:40 CEST 2006
Author: phillip.eby
Date: Wed Sep 6 21:43:39 2006
New Revision: 51781
Modified:
sandbox/trunk/setuptools/setuptools/command/easy_install.py
Log:
Don't check installation directory writability and site/.pth setup when
using --editable.
Modified: sandbox/trunk/setuptools/setuptools/command/easy_install.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/easy_install.py (original)
+++ sandbox/trunk/setuptools/setuptools/command/easy_install.py Wed Sep 6 21:43:39 2006
@@ -155,7 +155,7 @@
)
else:
self.all_site_dirs.append(normalize_path(d))
- self.check_site_dir()
+ if not self.editable: self.check_site_dir()
self.index_url = self.index_url or "http://www.python.org/pypi"
self.shadow_path = self.all_site_dirs[:]
for path_item in self.install_dir, normalize_path(self.script_dir):
@@ -411,7 +411,7 @@
def easy_install(self, spec, deps=False):
tmpdir = tempfile.mkdtemp(prefix="easy_install-")
download = None
- self.install_site_py()
+ if not self.editable: self.install_site_py()
try:
if not isinstance(spec,Requirement):
More information about the Python-checkins
mailing list