aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2007-02-23 20:29:58 +0000
committerPJ Eby <distutils-sig@python.org>2007-02-23 20:29:58 +0000
commitfb98a95e9badb23765ea520fd5bd9e30d0f1fe4a (patch)
tree605688714635990d2fb8fc117ca69a91eedf79ea /setuptools/command/easy_install.py
parentaba13220b952cd60df2a8f7cf44394d28a5f1814 (diff)
downloadexternal_python_setuptools-fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a.tar.gz
external_python_setuptools-fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a.tar.bz2
external_python_setuptools-fb98a95e9badb23765ea520fd5bd9e30d0f1fe4a.zip
Added ``--local-snapshots-ok`` flag, to allow building eggs from
projects installed using ``setup.py develop``. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053877
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index b8242520..c21307e3 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -70,18 +70,18 @@ class easy_install(Command):
('editable', 'e', "Install specified packages in editable form"),
('no-deps', 'N', "don't install dependencies"),
('allow-hosts=', 'H', "pattern(s) that hostnames must match"),
+ ('local-snapshots-ok', 'l', "allow building eggs from local checkouts"),
]
boolean_options = [
'zip-ok', 'multi-version', 'exclude-scripts', 'upgrade', 'always-copy',
'delete-conflicting', 'ignore-conflicts-at-my-risk', 'editable',
- 'no-deps',
+ 'no-deps', 'local-snapshots-ok',
]
negative_opt = {'always-unzip': 'zip-ok'}
create_index = PackageIndex
-
def initialize_options(self):
- self.zip_ok = None
+ self.zip_ok = self.local_snapshots_ok = None
self.install_dir = self.script_dir = self.exclude_scripts = None
self.index_url = None
self.find_links = None
@@ -177,7 +177,8 @@ class easy_install(Command):
self.find_links = self.find_links.split()
else:
self.find_links = []
-
+ if self.local_snapshots_ok:
+ self.package_index.scan_egg_links(self.shadow_path+sys.path)
self.package_index.add_find_links(self.find_links)
self.set_undefined_options('install_lib', ('optimize','optimize'))
if not isinstance(self.optimize,int):
@@ -202,7 +203,6 @@ class easy_install(Command):
self.outputs = []
-
def run(self):
if self.verbose<>self.distribution.verbose:
log.set_verbosity(self.verbose)