summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSean Reifschneider <jafo@tummy.com>2004-09-17 08:34:12 (GMT)
committerSean Reifschneider <jafo@tummy.com>2004-09-17 08:34:12 (GMT)
commit6011a3c874507687e9871adbc5f9a555419bb7c6 (patch)
tree266dc3e86bd4687365d3746a7ceb834078ad9f4b /Lib/distutils
parent57a6a41e54c132a317b80dd47df1598df3fb4cdf (diff)
downloadcpython-6011a3c874507687e9871adbc5f9a555419bb7c6.zip
cpython-6011a3c874507687e9871adbc5f9a555419bb7c6.tar.gz
cpython-6011a3c874507687e9871adbc5f9a555419bb7c6.tar.bz2
SF Patch 1022011: Add a command-line argument --no-autoreq, which sets the
"AutoReq: 0" to disable automatic dependency searching.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist_rpm.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 18546d2..7f1b440 100644
--- a/Lib/distutils/command/bdist_rpm.py
+++ b/Lib/distutils/command/bdist_rpm.py
@@ -81,6 +81,8 @@ class bdist_rpm (Command):
"capabilities required to build this package"),
('obsoletes=', None,
"capabilities made obsolete by this package"),
+ ('no-autoreq', None,
+ "do not automatically calculate dependencies"),
# Actions to take when building RPM
('keep-temp', 'k',
@@ -125,7 +127,8 @@ class bdist_rpm (Command):
"Force an architecture onto the RPM build process"),
]
- boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode']
+ boolean_options = ['keep-temp', 'use-rpm-opt-flags', 'rpm3-mode',
+ 'no-autoreq']
negative_opt = {'no-keep-temp': 'keep-temp',
'no-rpm-opt-flags': 'use-rpm-opt-flags',
@@ -172,6 +175,7 @@ class bdist_rpm (Command):
self.keep_temp = 0
self.use_rpm_opt_flags = 1
self.rpm3_mode = 1
+ self.no_autoreq = 0
self.force_arch = None
@@ -429,6 +433,9 @@ class bdist_rpm (Command):
if self.icon:
spec_file.append('Icon: ' + os.path.basename(self.icon))
+ if self.no_autoreq:
+ spec_file.append('AutoReq: 0')
+
spec_file.extend([
'',
'%description',