Re: Fedora 32 System-Wide Change proposal: Build Python 3 to statically link with libpython3.8.a for better performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14. 11. 19 2:48, Gordon Messmer wrote:
On 11/12/19 2:21 PM, John M. Harris Jr wrote:
However, I believe there's a third option here. It could be as simple as
providing a python3-static in addition, and NOT using `alternatives`.


Is that an option, though?  From the discussion, I was under the impression that static vs dynamic python affected whether or not python extensions need to be linked to libpython*.*m.so.  I'm unclear on that, though because I see some modules today that aren't linked to that library, though most of the ones I checked are.

Currently (python3.8 executable uses dynamic libpython3.8.so):

 - extension modules are not linked to libpython3.8.so by default
 - extension modules linked to libpython3.8.so (by cmake etc.) work just fine

After the change (python3.8 executable is "fat" and contains everything):

 - extension modules are not linked to libpython3.8.so by default
 - extension modules linked to libpython3.8.so (by cmake etc.) might blow up

The extra "python3-static" thing mimics the second behavior, so:

 - extension modules are not linked to libpython3.8.so by default
 - extension modules linked to libpython3.8.so (by cmake etc.):
     - work just fine with "default" python
     - might blow up with "python3-static" python

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux