[Distutils] unixcompile.py, Darwin (MacOSX), ranlib?

Just van Rossum just@letterror.com
Tue Aug 7 04:58:00 2001


I've noticed that when building a static library as part of a setup.py, I have
to do

   ranlib build/temp.<platformname>/*.a

and then run "python setup.py build" again before it works.

<platformname> is "darwin-1.3.7-Power Macintosh-2.1".

Can anyone suggest a patch to unixcompiler.py so that ranlib is invoked under
Darwin? I've seen the comment "Not many Unices required ranlib anymore", so
apparently Darwin is one of these...

Just