Commit Graph

10 Commits

Author SHA1 Message Date
Christoph Reiter
08eb9bd35a python: fix sysconfig.get_platform when run in a mingw shell
In a mingw shell it will call os.uname() which starts with MINGW..
resulting in bogus results. So just check for sys.platform which
is always "cygwin".

See #5143
2025-02-01 18:15:00 +01:00
Christoph Reiter
425bc5adb3 python: remove version from platform string and always use "cygwin"
pip has recently started to compare wheel tags with system supported wheel
tags, and as it turns out build tools just use sysconfig.get_platform() to generate
a tag (in setuptools, wheel, packaging, etc) for non-official platforms. For
official platforms they do various normalization steps and use other sources.

Since we can't really patch all those packages we need to provide a platform
string that wont change between updates.

* Don't include the cygwin version in it anymore, since that can change on updates.
* Hardcode to "cygwin" since builing for cygwin can change the output of os.uname()

The later breaks detection of MSYS2 compared to cygwin, but ideally no one should
depend on it, and we want to get rid of the differences there anyway.

Fixes #5143
2025-01-25 09:25:03 +01:00
Christoph Reiter
cf4938d5f6 python: Update to 3.12.4
* drop all distutils patches, distutils is gone
* drop all setup.py patches, that's gone too
* refresh the 32bit rebase (things changed, but I added
  it to the same make target, hopefully still works)
* adjust the new module building code to depend on the import
  lib and also add the build dir to the library path so it can
  be found.
* ctypes dropped vendored things, so remove code deleting it
* the code printing a warning if a module build fails no longer
  exists, so drop the "tee" stuff and the error check there
2024-07-05 22:11:47 +02:00
Christoph Reiter
34a49bb1b3 python: more msysize cleanup
change uname to cygwin and drop all build time patches
depending on uname.

This shouldn't change anything in the build result in theory.
2023-02-13 19:10:27 +01:00
Christoph Reiter
0345259471 python: drop some more msysize changes 2022-06-06 15:12:23 +02:00
Christoph Reiter
1a870d7858 python: Update to 3.9.5
All the dropped changes seem no longer be needed (static is off by default,
the cygwin patch for .exe is upstream)
2021-05-15 15:04:08 +02:00
Christoph Reiter
2b65957fb9 python: pretend to be cygwin in more places
The main change here is that sys.platform == 'cygwin', which allows
us to drop various changes for extending cygwin checks. Fewer patches
and less likely that we miss to patch a new cygwin check on updates.

If one really needs to check for msys Python then this still works:

sysconfig.get_platform().startswith("msys")
2021-05-11 22:57:55 +02:00
Alexey Pavlov
4380c29a56 python: Update to 3.8.7 2021-01-12 13:24:46 +03:00
Alexey Pavlov
5cdc54995d python: Update to 3.8.2 2020-04-16 19:44:59 +03:00
Alexey Pavlov
885bbbadf0 Drop Python2 support. Round 4 2020-03-02 12:44:15 +03:00