[Wheel-builders] Problem with finding python library via CMake

Nathaniel Smith njs at pobox.com
Wed Jan 23 11:51:18 EST 2019


On Wed, Jan 23, 2019, 07:24 Jean-Christophe Fillion-Robin via
Wheel-builders <wheel-builders at python.org wrote:

> Hi Matt,
>
> You can assume that one windows the python dll will be available. (this is
> the case when using regular python distributions available python.org,
> anaconda, etc ... )
>

Yeah, on Windows, linking against the python dll is absolutely mandatory
for technical reasons, so you can assume it's always there.

And on macOS, linking against the python dylib is essentially impossible
for technical reasons, so tools should generally be set up to cope with
this.

The confusing case is Linux, where both options are supported and used on
different systems. In practice this means portable packages have to avoid
linking against the python .so, because it's not always available. But, you
can't assume tools will be set up to handle this, because some tool
developers only tested on systems that have a usable python .so.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/wheel-builders/attachments/20190123/2452298e/attachment.html>


More information about the Wheel-builders mailing list