switch default py3 version to 3.11 and rm old py3.x versions

This commit is contained in:
purplerain 2024-05-10 01:49:14 +00:00
parent 7f1bb8f14c
commit 9888392b04
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
63 changed files with 720 additions and 19538 deletions

View file

@ -0,0 +1,29 @@
As required by item 3 of the PSF license, here is a brief summary
of changes made to this version of Python for the OpenBSD package.
1. OpenBSD packages require that sonames are under control of the
ports infrastructure, configure.ac was patched to do this.
2. Conditionally enable modern hashes according to their availability.
3. Disable libuuid, otherwise Python prefers it over the libc uuid
functions.
4. Disable MULTIARCH check in configure.ac since OpenBSD is not a
multi-arch platform and it causes build problems.
5. Allow Python to build with LTO on OpenBSD clang architectures.
OpenBSD's version of llvm-ar is installed as /usr/bin/ar, and the
compiler as passed to ports builds is /usr/bin/cc.
6. Use closefrom(2) instead of looping through all the file descriptors
and calling close(2) on them.
7. ctypes' find_library is modified to pass "libc.so" to dlopen() rather
than attempting to resolve a version number by parsing ldconfig -r output,
which results in loading an incorrect version in some cases.
8. Adjust #ifdef to use LibreSSL's version of X509_STORE_get1_objects().
These changes are available in the OpenBSD CVS repository
<http://www.openbsd.org/anoncvs.html> in ports/lang/python/3.

View file

@ -0,0 +1,11 @@
[externally-managed]
Error=This Python installation is managed by pkg_add(1).
To install Python packages system-wide, use the OS packages where
possible, for example: "pkg_add py3-somepackage".
Otherwise, for software which is not available in packages,
it is recommended to create a "venv" (virtual environment, see
https://docs.python.org/3/library/venv.html) and install it there.
For standalone applications, pipx (in the py3-pipx package) can
help manage this for you.