The Wayback Machine - https://web.archive.org/web/20240503024114/https://github.com/python/cpython/issues/117987
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore removed Py_SetProgramName() and PySys_SetArgv() functions #117987

Closed
vstinner opened this issue Apr 17, 2024 · 1 comment
Closed

Restore removed Py_SetProgramName() and PySys_SetArgv() functions #117987

vstinner opened this issue Apr 17, 2024 · 1 comment

Comments

@vstinner
Copy link
Member

vstinner commented Apr 17, 2024

My Fedora team identified that the removal of "Python initialization" functions impacts at least 17 projects. I propose to restore them to give more time to impacted projects to be updated to the new PEP 587 PyConfig API added to Python 3.8.

These functions were marked as deprecated in Python 3.11.

Py_SetProgramName() and/or Py_SetPythonHome(), 7 impacted projects:

  • dionaea
  • fontforge
  • glade
  • libreoffice
  • neuron
  • python-pyqt6
  • python-pyside6

PySys_SetArgv() and/or PySys_SetArgvEx(), 12 impacted projects (glade and neuron are both lists):

  • collectd
  • glade
  • gnumeric
  • kernel
  • nautilus-python
  • nemo-extensions
  • neuron
  • obs-studio
  • pyotherside
  • remmina
  • scribus
  • sourcextractor++

In Python 3.13, I also proposed PEP 741 – Python Configuration C API but it's still a draft.

Linked PRs

vstinner added a commit to vstinner/cpython that referenced this issue Apr 17, 2024
Restore functions reomved in Python 3.13 alpha 1:

* Py_SetPythonHome()
* Py_SetProgramName()
* PySys_SetArgvEx()
* PySys_SetArgv()
vstinner added a commit to vstinner/cpython that referenced this issue Apr 17, 2024
Restore functions removed in Python 3.13 alpha 1:

* Py_SetPythonHome()
* Py_SetProgramName()
* PySys_SetArgvEx()
* PySys_SetArgv()
encukou pushed a commit that referenced this issue Apr 18, 2024
…H-117993)

Restore these functions removed in Python 3.13 alpha 1:

* Py_SetPythonHome()
* Py_SetProgramName()
* PySys_SetArgvEx()
* PySys_SetArgv()
@encukou
Copy link
Member

encukou commented Apr 18, 2024

Thank you! Every bit helps.

@encukou encukou closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants