classification
Title: sysconfig.get_config_var("py_version_nodot") should return 3_10
Type: behavior Stage: patch review
Components: Installation Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: The Compiler, lukasz.langa, mattip, pablogsal, steve.dower, vstinner
Priority: normal Keywords: patch

Created on 2020-05-23 20:47 by mattip, last changed 2020-11-04 17:10 by vstinner.

Pull Requests
URL Status Linked Edit
PR 20333 open mattip, 2020-05-23 20:56
PR 22858 open steve.dower, 2020-10-21 16:25
Messages (2)
msg369750 - (view) Author: mattip (mattip) * Date: 2020-05-23 20:47
Over in packaging, that code expects `sysconfig.get_config_var("py_version_nodot")` to be consistent with `tags._version_nodot`, which expects 3_10 for python 3.10. See https://github.com/pypa/packaging/issues/308. The current value of `sysconfig.get_config_var("py_version_nodot")` (which comes from https://github.com/python/cpython/blob/master/Lib/sysconfig.py#L89) is `310` which is ambiguous.
msg380344 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-11-04 17:10
Links about the "AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64')" error:

* PEP 641 -- Using an underscore in the version portion of Python 3.10 compatibility tags
  https://www.python.org/dev/peps/pep-0641/
* PEP 641 discussion:
  https://discuss.python.org/t/pep-641-using-an-underscore-in-the-version-portion-of-python-3-10-compatibility-tags/5513
* CPython PR 20333: "bpo-40747: Make py_version_nodot 3_10 not 310"
  https://github.com/python/cpython/pull/20333
* wheel: "Fails to build wheel for Python 3.10"
  https://github.com/pypa/wheel/issues/354
* python3-setuptools: "python-setuptools fails to build with Python 3.10: AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64')"
https://bugzilla.redhat.com/show_bug.cgi?id=1891840
History
Date User Action Args
2020-11-04 17:10:03vstinnersetnosy: + vstinner
messages: + msg380344
2020-10-21 16:25:00steve.dowersetnosy: + steve.dower
pull_requests: + pull_request21801
2020-10-08 20:28:59The Compilersetnosy: + The Compiler
2020-05-24 00:44:58ned.deilysetnosy: + lukasz.langa, pablogsal
2020-05-23 20:56:52mattipsetkeywords: + patch
stage: patch review
pull_requests: + pull_request19601
2020-05-23 20:47:46mattipcreate