autoconf-style checking for installed libs with DistUtils

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Ströder

    autoconf-style checking for installed libs with DistUtils

    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.

  • John J. Lee

    #2
    Re: autoconf-style checking for installed libs with DistUtils

    Michael Ströder <michael@stroed er.com> writes:
    [color=blue]
    > 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.[/color]

    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) autoconfigurati on
    code, but I don't know if it has any distutils support.


    John

    Comment

    • Hartmut Goebel

      #3
      Re: autoconf-style checking for installed libs with DistUtils

      John J. Lee schrieb:[color=blue]
      > Michael Ströder <michael@stroed er.com> writes:[/color]
      [color=blue][color=green]
      >>Is it possible to probe for installed libs with DistUtils?[/color][/color]
      [color=blue]
      > I wonder if SCons (pure-Python) could help in some way with this kind
      > of stuff? It *does* have some (newish, I think) autoconfigurati on
      > code, but I don't know if it has any distutils support.[/color]

      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
      --
      | Hartmut Goebel | IT-Security -- effizient |
      | h.goebel@goebel-consult.de | www.goebel-consult.de |

      Comment

      Working...