Commit Graph

157 Commits

Author SHA1 Message Date
Alexey Pavlov
f75d985c64 python3: Fix LDFLAGS returning by python-config script 2019-10-25 11:01:26 +03:00
Alexey Pavlov
07440d0b56 python3: Provide python library in pkg-config files to be able link extensions in Windows 2019-10-24 14:50:37 +03:00
Alexey Pavlov
67c854c97e python3: Normalize path before returning from realpath. This fix issue with building numpy 2019-10-24 08:28:07 +03:00
Alexey Pavlov
7d16c9d247 python3: Update to 3.8.0 2019-10-23 13:58:54 +03:00
Alexey Pavlov
738f8787fe python3: Update to 3.7.5 2019-10-17 13:37:31 +03:00
Christoph Reiter
66a0f8f107 Revert "python3: Replace python3-virtualenv package"
This reverts commit a934b5a5d1.

python3 doesn't provide a virtualenv command
2019-08-21 10:00:42 +02:00
Christoph Reiter
d9d70d6349 python: Move idle, pydoc and 2to3 to python3
Python 2 now has idle2, pydoc2 and 2to3-2.7

This also fixes the shebang line of the python3 scripts.
They contain backslashes which we need to escape for sed.
2019-08-15 14:57:42 +02:00
Christoph Reiter
045f13db6e python3: move rmtree sleep to scikit-learn
Most projects have their own rmtree with backoff and timeout because
of virus scanners, but scikit-learn doesn't.
2019-08-15 10:43:15 +02:00
Alexey Pavlov
ad1fb63ca2 python3: Fix some race conditions during building extensions. There are must be some time between external process endend and directory it used 2019-08-13 12:03:17 +03:00
Alexey Pavlov
913e8e443a python3: Another try to fix handling ".mc" files 2019-07-30 10:32:19 +03:00
Alexey Pavlov
1912c5bffe python3: Fix implement hadling ".mc" files 2019-07-30 10:26:30 +03:00
Alexey Pavlov
240d923666 python3: Implement handling ".mc" files in cygwin compiler that used by mingw 2019-07-30 09:57:25 +03:00
Alexey Pavlov
a934b5a5d1 python3: Replace python3-virtualenv package 2019-07-23 12:08:39 +03:00
Christoph Reiter
28fc77f0e8 python3: build with PGO+LTO
It gives a nice 15-20% speedup with the pyperformance benchmarks.
Build time increases from ~12 minutes to ~20 minutes.
2019-07-23 07:34:53 +02:00
Dan Yeaw
2d43e1a4af Bump pkgrel
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-21 18:33:07 -04:00
Dan Yeaw
af5f940e95 Remove MSYSTEM from os.environ to fix pip, add exe to executables
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-21 18:13:15 -04:00
Dan Yeaw
30632dd58d Remove force copy, self.symlinks is already False with Windows
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-21 11:45:55 -04:00
Dan Yeaw
dc2427da98 Fix sha256sum for patch 2052
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-21 10:39:25 -04:00
Dan Yeaw
5e0fe0ea9a Fix failure to install pip when creating virtualenv
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-21 09:54:27 -04:00
Dan Yeaw
d36752f1ef Fix Windows path added to $PATH on activating venv
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-20 20:55:15 -04:00
Dan Yeaw
76f830a25a Fix venvlauncher not found error when creating venv
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-20 20:54:04 -04:00
Dan Yeaw
823a60f6c7 Add patch to not use win32 venv redirector
In Python 3.7.2, Windows now uses a venv redirector instead of copying
the interpreter in to the virtualenv. Also this changes the virtualenv
binary path from Scripts to bin to be consistent with the normal POSIX
location.

Signed-off-by: Dan Yeaw <dan@yeaw.me>
2019-07-20 16:39:52 -04:00
Alexey Pavlov
228cc0cf16 python3: Update to 3.7.4, make python3 default python 2019-07-09 13:52:34 +03:00
Alexey Pavlov
77d21ccf14 Back to ncurses as default curses library 2019-07-07 00:25:22 +03:00
William D. Jones
45ebd1cecf python3: Fix compilation of ctypes module if dlfcn.h is present. 2019-06-20 15:27:38 -04:00
Alexey Pavlov
0ab6b3b9a0 python{2,3}: Rebuild with pdcurses 2019-05-28 11:57:54 +03:00
Christoph Reiter
8a162525a7 python: better compatibility with unpatched setuptools. Fixes #5155
We currently patch setuptools itself to not import distutils.msvc9compiler,
which fails because it fails to detect the msvc version and falls back to an unsupported
version 6 and raises.

This doesn't help much in case setuptools is installed through pip which doesn't contain
the fix.

This fixes msvc9compiler.py instead to not fail on import but at the compiler instance creation,
i.e. the point where the version is actually used. The setuptools fix remains for now to make
updates easier.

Fixes #5155
2019-04-21 16:40:58 +02:00
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
ea45e57abc python3: Update to 3.7.3 2019-04-16 08:44:55 +03:00
Christoph Reiter
91a728c082 python3: fix HAVE_INET_PTON configure check on Windows. Fixes #5184
HAVE_INET_PTON is hardcoded to 1 in the official Windows build. Since we use autotools
we need to make the check work on Windows.

This makes socket.inet_ntop() and socket.inet_pton() available like with the official build.
2019-04-13 17:56:50 +02:00
Алексей
ab5330dd37 Revert "Revert "python3: Improve patching _sysconfigdata.py"" 2019-03-19 10:02:39 +03:00
Алексей
f8b5c1212f Revert "python3: Improve patching _sysconfigdata.py" 2019-03-18 15:13:13 +03:00
Philipp Hörist
a403fbaa9b python3: Improve patching _sysconfigdata.py
Add code at the end of `_sysconfigdata.py` that modifys `build_time_vars` at
module load time with python syntax.

Remove all the sed replaces from PKGBUILD because its hard to review and prone to breakage

Finally a test is added to detect syntax errors next time early on

Fixes https://github.com/msys2/MINGW-packages/issues/5048
2019-03-17 11:31:56 +01:00
Alexey Pavlov
20a5734777 python3: Update to 3.7.2 2018-12-25 08:58:30 +03:00
Christoph Reiter
32ad463f76 python3: fix ctypes module build. Fixes #4572 (#4575)
https://github.com/python/cpython/pull/9258 changed callproc to
use functions from the internal libffi which we don't use.
Just copy the functions into callproc directly instead.
2018-10-21 21:58:09 +03:00
Christoph Reiter
5d5eb4b85a python3: fix checksum
I always forget..
2018-10-21 19:57:29 +02:00
Christoph Reiter
e73064270e python3: add a ctypes import to the tests
the last build is missing ctypes, this makes it easier to detect it early next time
2018-10-21 19:54:42 +02:00
Alexey Pavlov
685e2cafa7 python3: Update o 3.7.1 2018-10-21 11:23:57 +03:00
Christoph Reiter
2155c280d4 python3: revert openssl fix, no longer needed (#4476)
* Revert "python3: fix openssl build checks (#4462)"

This reverts commit 6c2bb843f8.

* python3: bump pkgrel
2018-09-27 21:17:48 +03:00
Christoph Reiter
6c2bb843f8 python3: fix openssl build checks (#4462)
openssl no longer includes windows.h and requires the user to do so first.
2018-09-25 23:29:50 +03:00
Alexey Pavlov
391ba3179a openssl 1.1.x rebuilds 2018-09-25 07:41:07 +03:00
Alexey Pavlov
694ef05b27 python3: Fix user site location 2018-08-03 14:55:26 +03:00
Christoph Reiter
b843352b2c python3: fix python3-config handling of multiple arguments (#4118)
"python3-config --ldflags --cflags" doesn't return anything because
"$*" results in one string, not sure why this was changed in the first place.

Switch it back to "$@" which expands to multiple words.

Noticed because I wondered why this patch is needed on Windows only:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-gobject-introspection/0055-fix-python-detection.patch
2018-07-28 15:51:00 +03:00
Alexey Pavlov
72041ca33c python3: Make sysconfig relocatable. Patch 000 do it only partially 2018-07-14 12:56:19 +03:00
Alexey Pavlov
65174a16e0 python3: Fix loading classes from sibling files 2018-07-13 15:38:07 +03:00
Alexey Pavlov
20f13ad8ff python3: Unify getpath module for detecting absolute path for Windows
and Unix
2018-07-12 21:19:30 +03:00
Alexey Pavlov
ec7e6dae7f python3: commit missing patch 2018-07-12 18:40:28 +03: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
Alexey Pavlov
1b3b2f52ca python3: More general fixes for NT vs POSIX threads 2018-07-09 14:29:26 +03:00
Christoph Reiter
c054d829f0 python3: undef _POSIX_THREADS in one more place; switch back to nt-threads
python uses _POSIX_THREADS to decide if it uses posix or nt threads,
but _POSIX_THREADS get included all the time by header includes
(pthread, unistd) in mingw. This was already patched but py3.7 added a new
header with a similar check which was missing.

This resulted in a mix of ntthread/posix api usage an crashes.
2018-07-07 09:32:43 +02:00