autoconf-style checking for installed libs with DistUtils

  • Thread starter =?ISO-8859-1?Q?Michael_Str=F6der?=
  • Start date
?

=?ISO-8859-1?Q?Michael_Str=F6der?=

HI!

Is it possible to probe for installed libs with DistUtils?

I'd like to automatically search for optional libs and adjust C compiler
switchers before starting the build of a the extension module.

Ciao, Michael.
 
J

John J. Lee

Michael Ströder said:
Is it possible to probe for installed libs with DistUtils?

I'd like to automatically search for optional libs and adjust C
compiler switchers before starting the build of a the extension module.

Unfortunately, great though it is, distutils can be a bit hard to
customize. I remember having trouble getting extra gcc switches in,
and getting data put where it needed to go. Generally, you do
whatever you like before calling setup(), to figure out library paths
and such. I haven't heard of any autoconf-like facilities having been
added. If you have a particular problem, try asking about that.

I wonder if SCons (pure-Python) could help in some way with this kind
of stuff? It *does* have some (newish, I think) autoconfiguration
code, but I don't know if it has any distutils support.


John
 
H

Hartmut Goebel

I wonder if SCons (pure-Python) could help in some way with this kind
of stuff? It *does* have some (newish, I think) autoconfiguration
code, but I don't know if it has any distutils support.

SCons has some support for Library checks. But you may want to have a
look at Autoscons which offers more stuff (still under development). In
addition I am currently working on implementing a whole bunch of
autoconf stuff for Autoscons. If you are interested, I can send you some
fragments.

Regards
Hartmut Goebel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top