summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-01-10 04:00:54 +0000
committerPJ Eby <distutils-sig@python.org>2006-01-10 04:00:54 +0000
commitabed75c8f1a0b6a449b5411caf3d9581fabae3df (patch)
tree55e9d0739895972920b6992d3bf4b01f78229bc5 /setuptools/command/easy_install.py
parent51d68aa576cd63dab44ed6f9578211a0e90def9a (diff)
downloadpython-setuptools-git-abed75c8f1a0b6a449b5411caf3d9581fabae3df.tar.gz
EasyInstall can now download bare ``.py`` files and wrap them in an egg,
as long as you include an ``#egg=name-version`` suffix on the URL, or if the ``.py`` file is listed as the "Download URL" on the project's PyPI page. This allows third parties to "package" trivial Python modules just by linking to them (e.g. from within their own PyPI page or download links page). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041995
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index c8ad0e50..513586d6 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -499,7 +499,7 @@ class easy_install(Command):
# Anything else, try to extract and build
setup_base = tmpdir
- if os.path.isfile(dist_filename):
+ if os.path.isfile(dist_filename) and not dist_filename.endswith('.py'):
unpack_archive(dist_filename, tmpdir, self.unpack_progress)
elif os.path.isdir(dist_filename):
setup_base = os.path.abspath(dist_filename)