diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-07-03 12:28:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-07-03 12:28:58 (GMT) |
commit | 4548239e2b171ea9fa175744f17a32a884ab514a (patch) | |
tree | c1dd9cfec1d6f2ee55c9e810008c46d7f75091de /Lib | |
parent | fcfff0a7fa6ece4c806b6e1a0a66b5ce214b9a28 (diff) | |
download | cpython-4548239e2b171ea9fa175744f17a32a884ab514a.zip cpython-4548239e2b171ea9fa175744f17a32a884ab514a.tar.gz cpython-4548239e2b171ea9fa175744f17a32a884ab514a.tar.bz2 |
Bug #1267547: Put proper recursive setup.py call into the
spec file generated by bdist_rpm.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/command/bdist_rpm.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 738e3f7..5b09965 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -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), |