[Python-Dev] Re: [snake-farm] Autodetect /usr/ccs/bin?

Michael Hudson mwh@python.net
08 Oct 2002 11:02:09 +0100


Skip Montanaro <skip@pobox.com> writes:

>     >> Should the configure script try with /usr/ccs/bin/ar and ld if none
>     >> is explicitly supplied?
> 
> I think you should add /usr/ccs/{lib,bin,include} and /sw/{lib,bin,include}
> to places you automatically search for "useful stuff".  As Anders pointed
> out, /usr/ccs is something of a standard among the more proprietary of the
> Unix platforms.  /sw/... is where the fink gang installs all the various GNU
> goodies on MacOS X.  While you won't need to search /sw/bin for ar and ld,
> you might well find useful third-party libraries there which various wrapper
> modules can use.  When I configured XEmacs without asking it to look in
> /sw/...  it came up with a fairly feeble configuration (no jpeg or png
> support).  That said, perhaps the /sw thing will work with a simple change
> to setup.py.  I'm testing a change right now to see if my build picks up
> readline or not.

If this is your change:

Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.111
diff -c -r1.111 setup.py
*** setup.py    25 Sep 2002 14:59:57 -0000      1.111
--- setup.py    8 Oct 2002 10:01:00 -0000
***************
*** 229,234 ****
--- 229,236 ----
          # Ensure that /usr/local is always used
          add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
          add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
+         add_dir_to_list(self.compiler.library_dirs, '/sw/lib')
+         add_dir_to_list(self.compiler.include_dirs, '/sw/include')
  
          if os.path.normpath(sys.prefix) != '/usr':
              add_dir_to_list(self.compiler.library_dirs,

It will.

This is so easy, I don't think it's worth bothering with in the
core...

Cheers,
M.

-- 
  Considering that this thread is completely on-topic in the way only
  c.l.py threads can be, I think I can say that you should replace
  "Oblivion" with "Gravity", and increase your Radiohead quotient.
                                      -- Ben Wolfson, comp.lang.python