diff options
author | Greg Ward <gward@python.net> | 2000-04-14 13:53:34 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-04-14 13:53:34 (GMT) |
commit | 8eef583025301a2547e0b348ee124f6adbb004fe (patch) | |
tree | 9aab37fac4e0a2bd62e60591992f3bed7fc9b826 /Lib | |
parent | 46b98e35fd325063b321c05cd580c4430e3988ed (diff) | |
download | cpython-8eef583025301a2547e0b348ee124f6adbb004fe.zip cpython-8eef583025301a2547e0b348ee124f6adbb004fe.tar.gz cpython-8eef583025301a2547e0b348ee124f6adbb004fe.tar.bz2 |
Don't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) starts
with ":".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/unixccompiler.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 0944461..5e1524c 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -158,11 +158,13 @@ class UnixCCompiler (CCompiler): output_filename] + objects + self.objects) - # Not many Unices required ranlib anymore -- SunOS 4.x is, - # I think the only major Unix that does. Probably should - # have some platform intelligence here to skip ranlib if - # it's not needed. - self.spawn ([self.ranlib, output_filename]) + # Not many Unices required ranlib anymore -- SunOS 4.x is, I + # think the only major Unix that does. Maybe we need some + # platform intelligence here to skip ranlib if it's not + # needed -- or maybe Python's configure script took care of + # it for us, hence the check for leading colon. + if self.ranlib[0] != ':': + self.spawn ([self.ranlib, output_filename]) else: self.announce ("skipping %s (up-to-date)" % output_filename) |