Package Details: mingw-w64-python 3.9.7-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-python.git (read-only, click to copy)
Package Base: mingw-w64-python
Description: Next generation of the python high-level scripting language (mingw-w64)
Upstream URL: https://www.python.org/
Keywords: mingw-w64 python
Licenses: PSF
Submitter: xantares
Maintainer: None
Last Packager: cygn
Votes: 7
Popularity: 0.000000
First Submitted: 2013-10-17 18:13 (UTC)
Last Updated: 2021-10-23 10:25 (UTC)

Required by (0)

Sources (119)

Latest Comments

1 2 3 4 Next › Last »

biergaizi commented on 2023-05-11 10:47 (UTC)

Python 3.9 has been deprecated and removed by ArchLinux, but you can still install it via AUR, the name is python39. After installing python39 via AUR, this package should compile without issues.

But note that for some reason (likely search path related), running x86_64-w64-mingw32-python3.9 won't work, you should see:

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

But running the python3.9.exe from /usr/x86_64-w64-mingw32/ works okay.

Python 3.9.7 (default, May 11 2023, 10:32:12)  [GCC 12.2.0 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

Control-D does not work due to Windows console incompatibility, use Control-Z and Enter to exit, or alternatively use exit().

Martchus commented on 2022-07-01 16:22 (UTC)

Looks like the build fails if the version of the regular python package doesn't match mingw-w64 version:

==> Starting build()...
~/mingw-w64-python/src/Python-3.9.7/build-i686-w64-mingw32 ~/mingw-w64-python/src/Python-3.9.7
configure: WARNING: unrecognized options: --enable-static
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-w64-mingw32
checking for python3.9... no
checking for python3... python3
checking for python interpreter for cross build... configure: error: python3.9 interpreter not found
==> ERROR: A failure occurred in build().

So maybe it makes just sense to update the package (which sadly needs 117 patches, so likely not the easiest task).

luigoalma commented on 2019-03-06 18:53 (UTC) (edited on 2019-03-06 19:00 (UTC) by luigoalma)

oh, @1ace, I think I seen that error, but it didn't fail to compile all altogether. This was a while ago, but I believe I had done a mini patch for it, but never included it. Is it failing to build fully for you?

1ace commented on 2019-03-06 16:51 (UTC)

Doesn't compile; looks like it's missing a makedepend on whatever package provides mingw's uuid.h

/var/tmp/mingw-w64-python/src/Python-3.7.2/Modules/_uuidmodule.c:15:5: error: unknown type name ‘uuid_t’; did you mean ‘uid_t’? uuid_t uuid; ^~~~~~ uid_t /var/tmp/mingw-w64-python/src/Python-3.7.2/Modules/_uuidmodule.c:32:5: error: implicit declaration of function ‘uuid_generate_time’; did you mean ‘py_uuid_generate_time_safe’? [-Werror=implicit-function-declaration] uuid_generate_time(uuid); ^~~~~~~~~~~~~~~~~~ py_uuid_generate_time_safe

Forty-Bot commented on 2018-04-25 04:00 (UTC)

This package is missing a python makedepend. https://ptpb.pw/XYI6 is an example of the build failing in a chroot.

adsun commented on 2017-12-21 23:21 (UTC)

@xlwz try using makepkg instead of yaourt, and post a link to the log.

XLWZ commented on 2017-12-17 22:43 (UTC)

build failed error: [Errno 2] No such file or directory: '/tmp/yaourt-tmp-xlwz/aur-mingw-w64-python/src/Python-3.6.3/Modules/_ctypes/libffi

adsun commented on 2017-11-15 22:42 (UTC)

@franciscod Thanks! :)

franciscod commented on 2017-11-15 19:27 (UTC)

Awesome! Great job :)