]> granicus.if.org Git - python/commitdiff
Bug #1267547: Put proper recursive setup.py call into the
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 3 Jul 2006 12:28:58 +0000 (12:28 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 3 Jul 2006 12:28:58 +0000 (12:28 +0000)
spec file generated by bdist_rpm.

Lib/distutils/command/bdist_rpm.py
Misc/NEWS

index 738e3f72691c33d43aa76ec1c634c712276d9d0c..5b09965867a814418a0351b86170ba78a672733e 100644 (file)
@@ -467,7 +467,8 @@ class bdist_rpm (Command):
 
         # 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
 
@@ -481,9 +482,9 @@ class bdist_rpm (Command):
             ('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),
index 474010454a1a6ebaf5ad0eec024e1b6bb6d2a52a..4cb5cd37dc60bf21d3c30b844f91f97e5b5d8d41 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -22,6 +22,9 @@ Core and builtins
 Library
 -------
 
+- Bug #1267547: Put proper recursive setup.py call into the
+  spec file generated by bdist_rpm.
+
 - Bug #1514693: Update turtle's heading when switching between
   degrees and radians.