Commit Graph

22 Commits

Author SHA1 Message Date
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
Alexey Pavlov
2a391bd066 Rebuild packages for libffi-3.3 2020-04-09 23:38:13 +03:00
Alexey Pavlov
da31e8b576 python: Update to 3.8.2 2020-02-27 12:06:07 +03:00
Alexey Pavlov
6b0c589401 Rename python3 package to python 2019-12-24 15:48:09 +03:00
Christoph Reiter
7ce8394ec8 python3: fix path separator in pathlib 2019-12-23 11:20:18 +01:00
Christoph Reiter
5f2b577167 python3: Update to 3.8.1 2019-12-23 10:55:43 +01:00
Alexey Pavlov
8ad431812a Rename python3 folders to python 2019-12-23 10:10:26 +03:00