Skip to content

Python3.8+ no longer needed to link against libpython #1630

@sanjayankur31

Description

@sanjayankur31

Is your feature request related to a problem? Please describe.

The Fedora Python maintainers recently informed the community that "As of Python 3.8, python C extensions modules should not link to libpython, unless they embed the interpreter in their code. Relevant upstream PR: python/cpython#12946"

https://lists.fedoraproject.org/archives/list/[email protected]/thread/IAIUO5XU54FQM64TDXWF4YMHHWGQFNXT/#6ZJGJ4LHSCDBI4IYAREKXJFENOIVLUNO

As the e-mail also says, a simple check to see whether the tool should link to libpython is to see if the code uses Py_Initialize and Py_Finalize. I grepped the nest code and didn't find these. So I think nest does not need to link to libpython either.

Describe the solution you'd like
Do not link against libpython for python3.8+

Describe alternatives you've considered
I could patch the NeuroFedora NEST package downstream.

Additional context
NA.

Metadata

Metadata

Assignees

Labels

I: No breaking changePreviously written code will work as before, no one should note anything changing (aside the fix)S: NormalHandle this with default priorityT: BugWrong statements in the code or documentationstaleAutomatic marker for inactivity, please have another look here

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions