aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/__init__.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2005-03-21 19:50:46 +0000
committerPJ Eby <distutils-sig@python.org>2005-03-21 19:50:46 +0000
commite9230cf512726e5ea428028c564a5b6a36b91095 (patch)
tree20ec3e3f76edb6e59a50e69fd60762b4d6af6ff2 /setuptools/command/__init__.py
parentecc9eaadaaa30af17bff8b4254940344ad528279 (diff)
downloadexternal_python_setuptools-e9230cf512726e5ea428028c564a5b6a36b91095.tar.gz
external_python_setuptools-e9230cf512726e5ea428028c564a5b6a36b91095.tar.bz2
external_python_setuptools-e9230cf512726e5ea428028c564a5b6a36b91095.zip
Add 'bdist_egg' command/format to allow creating "Python Eggs" (see
http://peak.telecommunity.com/DevCenter/PythonEggs for details). This version only supports pure libraries and does not support user-defined metadata. But it's sufficient to make .egg files that can be placed on PYTHONPATH and used. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4040989
Diffstat (limited to 'setuptools/command/__init__.py')
-rw-r--r--setuptools/command/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setuptools/command/__init__.py b/setuptools/command/__init__.py
index 86263cfb..f9c5b19b 100644
--- a/setuptools/command/__init__.py
+++ b/setuptools/command/__init__.py
@@ -1,6 +1,6 @@
import distutils.command
-__all__ = ['test', 'depends']
+__all__ = ['test', 'depends', 'bdist_egg']
# Make our commands available as though they were part of the distutils
@@ -9,3 +9,11 @@ distutils.command.__path__.extend(__path__)
distutils.command.__all__.extend(
[cmd for cmd in __all__ if cmd not in distutils.command.__all__]
)
+
+from distutils.command.bdist import bdist
+
+if 'egg' not in bdist.format_commands:
+ bdist.format_command['egg'] = ('bdist_egg', "Python .egg file")
+ bdist.format_commands.append('egg')
+
+del bdist