Michael Haubenwallner added the comment:

Well, they should not be identical, as they are for different use cases.

"pkg-config python" is to build an application containing a python interpreter 
(like python$EXE):
 + Link against libpython.so. Additionally,
 + re-export symbols from libpython.so for the python-modules 
(platform-specific).
 = This is similar to build against any other library, thus using 'pkg-config 
python'.

"python-config" is to build a python-module (like 
build/lib.<platform>-<pyver>/*.so):
 + No need to link against libpython.so, instead
 + expect symbols from libpython.so to be available at runtime, platform 
specific either
 + as a list of symbols to import from "the main executable" (AIX), or
 + as undefined symbols at build-time (Linux, others), or
 = This is specific to python-modules, thus using 'python-config'.

----------
nosy: +haubi

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15590>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to