Patches sent to python-dev are typically ignored. Could you open an issue on <a href="http://bugs.python.org">bugs.python.org</a> and upload it there?<br><br><div>On Mon Jun 02 2014 at 2:20:43 PM, Michael Haubenwallner <<a href="mailto:michael.haubenwallner@ssi-schaefer.com">michael.haubenwallner@ssi-schaefer.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
following up myself with a patch proposal:<br>
<br>
On 05/28/2014 04:51 PM, Michael Haubenwallner wrote:<br>
> Stumbling over problems on AIX (Modules/python.exp not found) building libxml2 as python module<br>
> let me wonder about the intended use-cases for 'python-config' and 'pkg-config python'.<br>
><br>
> FWIW, I can see these distinct use cases here, and I'm kindly asking if I got them right:<br>
><br>
> * Build an application containing a python interpreter (like python$EXE itself):<br>
> + link against libpython.so<br>
> + re-export symbols from libpython.so for python-modules (platform-specific)<br>
> + This is similar to build against any other library, thus<br>
> = 'python.pc' is installed (for 'pkg-config python').<br>
><br>
> * Build a python-module (like build/lib.<platform>-<pyver>/*<u></u>.so):<br>
> + no need to link against libpython.so, instead<br>
> + expect symbols from libpython.so to be available at runtime, platform-specific either as<br>
> + undefined symbols at build-time (Linux, others), or<br>
> + a list of symbols to import from "the main executable" (AIX)<br>
> + This is specific to python-modules, thus<br>
> = 'python-config' is installed.<br>
><br>
<br>
Based on these use-cases, I'm on a trip towards a patch improving AIX support here,<br>
where the attached one is a draft against python-tip (next step is to have python-config<br>
not print $LIBS, but $LINKFORMODULE only).<br>
<br>
Thoughts?<br>
<br>
Thank you!<br>
/haubi/<br>
<br>
______________________________<u></u>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" target="_blank">https://mail.python.org/<u></u>mailman/options/python-dev/<u></u>brett%40python.org</a><br>
</blockquote>