Commit Graph

56 Commits

Author SHA1 Message Date
星外之神
b26a07e7de Python: Use -O3 level optimization (#11825) 2022-06-18 00:36:36 +02:00
Christoph Reiter
2c86cf7311 python: Update to 3.10.5 2022-06-10 17:54:24 +02:00
Christoph Reiter
4b2b312732 python: Update to 3.9.13 2022-05-18 22:12:26 +02:00
Christoph Reiter
f4d9d89f66 python: rebuild against ncurses shared lib 2022-04-30 21:38:42 +02:00
Christoph Reiter
64f516455c python: Update to 3.9.12 2022-04-24 20:14:24 +02:00
Christoph Reiter
7e51f869c4 python: Update to 3.9.11 2022-03-18 15:48:33 +01:00
Naveen M K
9ea6de58aa python: update
Add patch from https://github.com/msys2-contrib/cpython-mingw/pull/88
2022-03-14 22:16:05 +05:30
Christoph Reiter
602ce8fa2f python: Update to 3.9.10 2022-01-25 08:18:27 +01:00
Christoph Reiter
7c67d9c465 Make sure every package using a C/C++ compiler depends on one
The "cc" virtual package provides the environment default compiler.
2022-01-08 17:11:16 +01:00
Christoph Reiter
3eac67e2ca Makedepend on autotools where needed 2021-12-17 12:41:47 +01:00
Christoph Reiter
914c8fd859 Update Python 2021-11-21 22:09:20 +01:00
Christoph Reiter
c685934556 Update Python 2021-11-10 08:19:25 +01:00
Christoph Reiter
f85f694aab python: fix missing _decimal module
Fixes #9645
2021-09-23 10:33:16 +02:00
Christoph Reiter
8198ab6550 python: Update to 3.9.7
This also adds builtin zoneinfo support like on Unix
2021-09-22 09:11:46 +02:00
Christoph Reiter
35848a7ae0 More rebuilds 2021-08-15 15:18:22 +02:00
Christoph Reiter
0acc575d30 python: Update 2021-08-08 14:58:36 +02:00
Christoph Reiter
6a16db9801 Python 3.9 rebuilds
pacman -Fqx '/python3\.8/' '.*\.py.*' '.*-cpython-.*'
2021-07-11 12:18:48 +02:00
Christoph Reiter
3b77504fba python: Update to 3.9.6 2021-07-11 12:06:42 +02:00
Christoph Reiter
a80fe5efc4 Enable clangarm64 for bootstrap packages 2021-05-13 16:17:13 +02:00
Christoph Reiter
977d3b5e02 Enable clang32 for all packages already in the repo 2021-04-25 15:26:34 +02:00
Christoph Reiter
58acb56691 Enable clang64 for all packages already in the repo 2021-04-23 13:26:20 +02:00
Jeremy Drake
d08e2ba5b7 python: disguise Clang as GCC in sys.version.
Many places check for the string 'GCC' in sys.version to identify a
'posix' build.

Remove anchor from regex for extracting version number from -v/--version
output.  The presence of a git commit hash in LLD's ld -v output was
confusing it.  This doesn't seem entirely save, but solves the immediate
problem.

set CC to clang on clang prefix, to fix LTO/PGO

Remove mktime workaround now that mingw-w64 exports that symbol.
2021-04-12 16:49:55 -07:00
Naveen M K
6bf29f55ed autoconf-archive? 2021-04-03 11:08:54 +05:30
Naveen M K
677a62d754 python: update to 3.8.9 2021-04-03 01:21:07 +05:30
Christoph Reiter
b540a57971 python: work around mktime missing with ucrt
See https://github.com/msys2/CLANG-packages/issues/21
2021-03-30 17:07:51 +02:00
Christoph Reiter
b6facd5747 More ucrt 2021-03-26 18:35:34 +01:00
Christoph Reiter
d85e6bb6d2 python: drop patch no longer required
minwg-w64 is fixed now
2021-02-19 19:02:41 +01:00
Christoph Reiter
dc82161126 python3: Update to 3.8.8 2021-02-19 16:58:26 +01:00
Christoph Reiter
7768c1beb0 python: use AC_CHECK_TOOL for finding windres
instead of hardcoding it

Fixes #7948
2021-02-14 09:47:28 +01:00
Christoph Reiter
14ad4c7400 python: don't pass -s to LDFLAGS
Not sure why it is there (git history doesn't help).

It results in Python passing it to setuptools when building extensions
which results in extensions never having debug symbols even if built with "--debug".

Just remove it.
2021-01-31 13:37:27 +01:00
Christoph Reiter
d25f6dd758 bump pkgrel 2021-01-31 13:04:40 +01:00
Long Nguyen
71ec494e95 python: Extend MS_WINDOWS flag to check for mingw 2021-01-27 16:55:03 +07:00
Long Nguyen
72d6336948 python: Tweak patch 0440 to avoid concatenation error 2021-01-27 16:30:20 +07:00
Christoph Reiter
2edf27c304 python: revert cygpty encoding hack
Fixes #7681
2021-01-18 10:09:54 +01:00
Christoph Reiter
55bb9c2d1d python: cygpty hack improvements
In case of cygpty we want to fake a tty and at the same time make
Python behave as if it was attached to a console.

This improves two thing in that regard:

* Update the is_cygpty patch to cover more isatty() checks (likely
  they were added since the patch was created)
* Default the stdio encoding to the console output encoding by default.
  This is only in effect if stdout isn't redirected (then is uses the ANSI code page)
  and no real console is used (then it forces utf-8). Python never considers the
  case were isatty() and no console, so we have to add this.

This makes printing unicode work again in MSYS2 bash.
2021-01-06 18:24:15 +01:00
Christoph Reiter
7e150637d7 python: Update to 3.8.7 2020-12-26 08:40:13 +01:00
Christoph Reiter
7ab734e8fd python: copy all python launchers into the venv
Turns out Python uses the basename of the calling executable to
decide which launcher in the venv it uses to call pip with.
This means we have to copy all launchers we ship.

Use the non versioned launchers as src so the rewrite logic in venv
copies the venvlauncher variants.

Fixes #7227
2020-11-03 21:18:00 +01:00
Christoph Reiter
08f451fbb8 python: fix venv creation during uninstalled tests
The venv code for the uninstalled case depends on various hacks only
present in the Windows code paths, so instead of using the unix ones
patch the windows ones.

We now create a venvlauncher.exe in the build dir which gets copied
to the venv package during install, and when run uninstalled copies
it to the created venvs. This is mroe in line with what the msvc build
does.
2020-10-26 18:20:31 +01:00
Christoph Reiter
0f00679468 python: smoketests: basic testing for venv creation 2020-10-22 19:37:13 +02:00
Christoph Reiter
e5658f3172 python: don't install venvlauncher.exe
unlcear why this should be needed. We can add it back if we know more.
2020-10-22 19:36:46 +02:00
Dan Yeaw
7fd2d13dfe Fix virtualenv unable to access venv setup files
We aren't currently compiling the venvlauncher as part of python with
gcc. Previous patches in PR #5625 removed the venvlauncher redirector
by skipping "nt" platform portions in the venv module.

Although the previous patches worked to fix venv, it left us with key
venvlauncher files missing that were expected to be present in Windows.

In issue #7014, tox and other tools that depend on virtualenv were
unable to run. For example, there was issues with no such file or
directory errors:
'mingw64/lib/python3.8/venv/scripts/nt/python.exe'

This fixes these issues by removing some of the previous patches in venv
and copying python.exe and pythonw.exe to the locations where the
venvlauncher redirect files are expected. A future solution may be to
try to compile venvlauncher using gcc.
2020-10-21 21:57:28 -04:00
Christoph Reiter
bebb4580d6 python: some cleanups
* remove commented out stuff
* remove mtime changes, handled by "make rebuild-x" in newer Python
* remove patch for changing the exe names so it happens for all tools in one place
2020-10-01 10:31:07 +02:00
Christoph Reiter
eb34cc2bc8 python: don't build with PY_COERCE_C_LOCALE
This is a Unix only feature
2020-10-01 09:39:37 +02:00
Christoph Reiter
68056a4acd python: Update to 3.8.6 2020-10-01 09:11:03 +02:00
Jeremy Drake
daf393725b python: remove --disable-high-entropy-va override.
With tk fix, this is no longer necessary.
2020-09-06 12:22:11 -07:00
Christoph Reiter
9e414ff2d8 python: rebuild without high-entropy-va
It crashes the build without it
2020-09-03 22:18:22 +02:00
Alexey Pavlov
aefb9aed21 python: Update to 3.8.5 2020-07-21 16:36:39 +03:00
Alexey Pavlov
22fdbd77ce python: Update to 3.8.4 2020-07-16 12:48:56 +03:00
Christoph Reiter
364ca9416b python: build with --enable-loadable-sqlite-extensions (#6593)
our sqlite has this feature enabled, and the official CPython is
also built this ways.

See https://docs.python.org/3.9/library/sqlite3.html#f1

Fixes #6592
2020-06-17 08:15:57 +03:00
Alexey Pavlov
4be00b98f6 python: Update to 3.8.3 2020-05-14 17:18:38 +03:00