Skip to content

gh-109276: Complete test.pythoninfo #109312

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

Merged
merged 1 commit into from
Sep 12, 2023
Merged

gh-109276: Complete test.pythoninfo #109312

merged 1 commit into from
Sep 12, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 12, 2023

  • Enable collect_sysconfig() on Windows.
  • Add sysconfig 'abs_builddir' and 'srcdir'
  • Add sysconfig.is_python_build()
  • Add tempfile.gettempdir()
  • Remove compatiblity with Python 2.7 (print_function).

* Enable collect_sysconfig() on Windows.
* Add sysconfig 'abs_builddir' and 'srcdir'
* Add sysconfig.is_python_build()
* Add tempfile.gettempdir()
* Remove compatiblity with Python 2.7 (print_function).
@vstinner
Copy link
Member Author

Windows x64:

sysconfig.is_python_build: True
sysconfig[prefix]: D:\a\cpython\cpython
sysconfig[srcdir]: D:\a\cpython\cpython
tempfile.gettempdir: C:\Users\RUNNER~1\AppData\Local\Temp

Ubuntu:

sysconfig.is_python_build: True
sysconfig[ABIFLAGS]: d
sysconfig[CCSHARED]: -fPIC
sysconfig[CC]: gcc -pthread
sysconfig[CFLAGS]: -fno-strict-overflow -Wsign-compare -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -Og -Wall
sysconfig[CONFIG_ARGS]: '--config-cache' '--with-pydebug' '--with-openssl=/home/runner/work/cpython/cpython/multissl/openssl/1.1.1v'
sysconfig[HOST_GNU_TYPE]: x86_64-pc-linux-gnu
sysconfig[MACHDEP]: linux
sysconfig[MULTIARCH]: x86_64-linux-gnu
sysconfig[OPT]: -g -Og -Wall
sysconfig[PY_CFLAGS]: -fno-strict-overflow -Wsign-compare -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -Og -Wall
sysconfig[PY_CFLAGS_NODIST]: -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I../cpython-ro-srcdir/Include/internal
sysconfig[PY_STDMODULE_CFLAGS]: -fno-strict-overflow -Wsign-compare -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -Og -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I../cpython-ro-srcdir/Include/internal -IObjects -IInclude -IPython -I. -I../cpython-ro-srcdir/Include
sysconfig[Py_DEBUG]: 1
sysconfig[Py_ENABLE_SHARED]: 0
sysconfig[Py_NOGIL]: 0
sysconfig[SHELL]: /bin/sh -e
sysconfig[SOABI]: cpython-313d-x86_64-linux-gnu
sysconfig[abs_builddir]: /home/runner/work/cpython/cpython-builddir
sysconfig[prefix]: /usr/local
sysconfig[srcdir]: /home/runner/work/cpython/cpython-ro-srcdir
tempfile.gettempdir: /tmp

@vstinner vstinner enabled auto-merge (squash) September 12, 2023 02:44
@vstinner vstinner merged commit df4f0fe into python:main Sep 12, 2023
@vstinner vstinner deleted the pythoninfo branch September 12, 2023 02:50
vstinner added a commit to vstinner/cpython that referenced this pull request Sep 13, 2023
* Enable collect_sysconfig() on Windows.
* Add sysconfig 'abs_builddir' and 'srcdir'
* Add sysconfig.is_python_build()
* Add tempfile.gettempdir()
* Remove compatiblity with Python 2.7 (print_function).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant