Commit Graph

13 Commits

Author SHA1 Message Date
Christoph Reiter
0f597c3bb0 python3: append prefix to PATH instead of prepending it. Fixes #5146
This is also a problem with meson which tries to execute things in the build
directory using the build directory DLLs by prepending those to PATH.
Since meson uses a Python helper the PATH gets updated to include the
system prefix first which makes things link against the installed libraries
instead and fail because symbols are missing.

One of the reasons why this was added in the first place is that Python loads
C extensions in lib-dynload which then can't find the libraries in prefix
(e.g. "import tkinter") if it isn't in PATH.

By moving the prefix at the end of PATH we make both cases work.

Starting with Python 3.8 C extensions will no longer use PATH for loading
DLL dependencies, see https://github.com/python/cpython/pull/12302
so we will have to look into this again then.
2019-04-16 23:49:48 +02:00
Alexey Pavlov
357d52eb06 python3: Add back PyGetSepA and fix invoke in traceback. More fixes for getpath module. Fix warnings 2018-07-12 15:05:57 +03:00
Алексей
edc01d04d6 Update python to 3.7.0 (#4047)
* Initial python-3.7 port

* python3: Add setup.config.in to remove before patching

* python3: Implement setenv for mingw. Fix building with NT threads. Build
with unicode

* Fix typos

* Fix linking core modules

* Mingw build have exec_prefix

* Remove deprecated patch

* Fix building python and modules. Failing to build readline module and
install not working yet

* More getpath changes and more aggressive path separator conversion

* Fix readline module compilation and linking errors

* python3: By default building with posix threads, NT threads are broken.
Some patches optimization. First buildable commit

* Py_DecodeLocale handle char, not wchar

* Fix building multiprocessing module with posix threads
2018-07-06 09:57:52 +03:00
Alexey Pavlov
0104255da0 python3: Update to 3.6.5 2018-04-16 10:51:53 +03:00
Alexey Pavlov
e9c507d51e python3: Update to 3.5.2 2016-07-12 14:49:26 +03:00
Alexey Pavlov
e79bd5d9b8 python3: WIP updating to 3.5.0 2015-09-21 15:47:39 +03:00
Ray Donnelly
ec4aae781e python3: Fix 'add ModuleFilename dir to PATH'
It only worked if os.sep == '\'
2015-06-07 10:55:36 +01:00
Ray Donnelly
c40c165d61 python3: Fixes for os.sep changes.
Moved 0600-msys-mingw-prefer-unix-sep-if-MSYSTEM.patch
   to 0555-msys-mingw-prefer-unix-sep-if-MSYSTEM.patch
so that 0560 can use the new functions it provides
(Py_GetSep{A,W}, Py_NormalizeSeps{A,W})

Starting to wonder if these changes aren't too invasive
overall, but in for a penny in for a pound.
2015-03-17 00:47:43 +00:00
Ray Donnelly
a391fdb04e python3: Rebase patches onto 3.4.2 2014-10-11 14:46:25 +01:00
Alexpux
4609cf8271 python3: Update to 3.4.1 2014-05-20 01:12:05 +04:00
Alexpux
462ca14a44 Python3: Update to 3.4.0 2014-03-18 00:25:28 +04:00
Alexpux
9f3cf6cf95 python3: Update to 3.3.5 2014-03-17 10:49:46 +04:00
Ray Donnelly
8fa89a9a18 python 2+3: Add dir of exe/dll to PATH and exec_prefix to sys.path 2014-02-20 20:33:18 +00:00