[Python-checkins] r47214 - in python/branches/release24-maint: Lib/distutils/command/bdist_rpm.py Misc/NEWS
martin.v.loewis
python-checkins at python.org
Mon Jul 3 14:29:54 CEST 2006
Author: martin.v.loewis
Date: Mon Jul 3 14:29:51 2006
New Revision: 47214
Modified:
python/branches/release24-maint/Lib/distutils/command/bdist_rpm.py
python/branches/release24-maint/Misc/NEWS
Log:
Bug #1267547: Put proper recursive setup.py call into the
spec file generated by bdist_rpm.
Modified: python/branches/release24-maint/Lib/distutils/command/bdist_rpm.py
==============================================================================
--- python/branches/release24-maint/Lib/distutils/command/bdist_rpm.py (original)
+++ python/branches/release24-maint/Lib/distutils/command/bdist_rpm.py Mon Jul 3 14:29:51 2006
@@ -454,7 +454,8 @@
# rpm scripts
# figure out default build script
- def_build = "%s setup.py build" % self.python
+ def_setup_call = "%s %s" % (self.python,os.path.basename(sys.argv[0]))
+ def_build = "%s build" % def_setup_call
if self.use_rpm_opt_flags:
def_build = 'env CFLAGS="$RPM_OPT_FLAGS" ' + def_build
@@ -468,9 +469,9 @@
('prep', 'prep_script', "%setup"),
('build', 'build_script', def_build),
('install', 'install_script',
- ("%s setup.py install "
+ ("%s install "
"--root=$RPM_BUILD_ROOT "
- "--record=INSTALLED_FILES") % self.python),
+ "--record=INSTALLED_FILES") % def_setup_call),
('clean', 'clean_script', "rm -rf $RPM_BUILD_ROOT"),
('verifyscript', 'verify_script', None),
('pre', 'pre_install', None),
Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS (original)
+++ python/branches/release24-maint/Misc/NEWS Mon Jul 3 14:29:51 2006
@@ -56,6 +56,9 @@
Library
-------
+- Bug #1267547: Put proper recursive setup.py call into the
+ spec file generated by bdist_rpm.
+
- Bug #1504333: Make sgmllib support angle brackets in quoted attribute
values.
More information about the Python-checkins
mailing list