aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_rpm.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/bdist_rpm.py')
-rwxr-xr-xsetuptools/command/bdist_rpm.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/command/bdist_rpm.py b/setuptools/command/bdist_rpm.py
new file mode 100755
index 00000000..004419ce
--- /dev/null
+++ b/setuptools/command/bdist_rpm.py
@@ -0,0 +1,11 @@
+# This is just a kludge so that bdist_rpm doesn't guess wrong about the
+# distribution name and version, if the egg_info command is going to alter them
+
+from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
+
+class bdist_rpm(_bdist_rpm):
+
+ def run(self):
+ self.run_command('egg_info') # ensure distro name is up-to-date
+ _bdist_rpm.run(self)
+