summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-07-10 20:08:20 +0000
committerPJ Eby <distutils-sig@python.org>2006-07-10 20:08:20 +0000
commit8689d19a64f4b3e2260444da18d676ef5af41539 (patch)
tree35bd478e08fc0d8256128451ecd2374e2e2ac2a5 /setuptools/command
parentf9e082742effbf51eeef3c3fa176c055bfa21e83 (diff)
downloadpython-setuptools-git-8689d19a64f4b3e2260444da18d676ef5af41539.tar.gz
Fix ``register`` not obeying name/version set by ``egg_info`` command, if
``egg_info`` wasn't explicitly run first on the same command line. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050534
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/__init__.py1
-rwxr-xr-xsetuptools/command/register.py10
2 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/command/__init__.py b/setuptools/command/__init__.py
index d5e965e6..678f4e61 100644
--- a/setuptools/command/__init__.py
+++ b/setuptools/command/__init__.py
@@ -2,6 +2,7 @@ __all__ = [
'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop',
'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts',
'sdist', 'setopt', 'test', 'upload', 'install_egg_info', 'install_scripts',
+ 'register',
]
diff --git a/setuptools/command/register.py b/setuptools/command/register.py
new file mode 100755
index 00000000..3b2e0859
--- /dev/null
+++ b/setuptools/command/register.py
@@ -0,0 +1,10 @@
+from distutils.command.register import register as _register
+
+class register(_register):
+ __doc__ = _register.__doc__
+
+ def run(self):
+ # Make sure that we are using valid current name/version info
+ self.run_command('egg_info')
+ _register.run(self)
+