]> granicus.if.org Git - python/commitdiff
Don't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) starts
authorGreg Ward <gward@python.net>
Fri, 14 Apr 2000 13:53:34 +0000 (13:53 +0000)
committerGreg Ward <gward@python.net>
Fri, 14 Apr 2000 13:53:34 +0000 (13:53 +0000)
with ":".

Lib/distutils/unixccompiler.py

index 0944461b9ab8069851890828e6f8da0027dd86c1..5e1524c67c833b6c8e0977dfc6cfd837fa8ee90b 100644 (file)
@@ -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)