Re: pip and missing shared system system library

David Mathog <[email protected]> Sun, 9 Aug 2020 12:04:39 -0700
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CAG5stg1tReA-ys9=kFbyz87fd0DcHYo5wzGyHAV9je=YVdSseQ@mail.gmail.com>
On Sun, Aug 9, 2020 at 10:21 AM Ned Deily <[email protected]> wrote:
> Just to be clear, pkg-config is not part of any Posix standard, AFAIK, so you cannot depend on it being available.

Understood.  However, if that is not employed what reasonable method
remains for implementing "Requires-External"?  The only thing I can
think of is to specify exact library or program names, like

Requires-External gcc
Requires-External libpng.so

and those could be found by searching the whole directory tree.  That
might even be efficient if updatedb/locate are available.  However
going that way, how would one determine version compatibility on a
library?  Doing it through the package manager may be possible, but it
is a multistep process:

1.  lookup libpng.so -> PATHPNG
2.  rpm -q --whatprovides $PATHPNG -> name of package
3.  analyze "name of package" for version information

Much easier one suspects to install pkg-config on systems which do not
yet have it than to completely reimplement it.

Does OS X have something which is equivalent to pkg-config, or is
there just no way to look up this sort of information on that OS?

Regards,

David Mathog
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/BCYVPMEGXLU7YQJUCCQDV5BT7E22EH7M/