Package Details: python313 3.13.0b2-1

Git Clone URL: https://aur.archlinux.org/python313.git (read-only, click to copy)
Package Base: python313
Description: Major release 3.13 of the Python high-level programming language
Upstream URL: https://www.python.org/
Licenses: PSF-2.0
Submitter: rixx
Maintainer: rixx
Last Packager: rixx
Votes: 0
Popularity: 0.000000
First Submitted: 2023-10-14 12:11 (UTC)
Last Updated: 2024-06-07 20:30 (UTC)

Dependencies (15)

Required by (0)

Sources (1)

Latest Comments

jrd commented on 2024-06-04 16:29 (UTC)

Here, is what I’ve done to build a GIL-free python version:

diff --git a/PKGBUILD b/PKGBUILD
index b4a152a..4937342 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -48,6 +48,7 @@ build() {
               --with-system-libmpdec \
               --enable-loadable-sqlite-extensions \
               --without-ensurepip \
+              --disable-gil \
               --with-tzpath=/usr/share/zoneinfo

   make EXTRA_CFLAGS="$CFLAGS"
@@ -66,7 +67,7 @@ package() {
   rm -f "${pkgdir}/usr/share/man/man1/python${_pymajver}.1"

   # Clean-up reference to build directory
-  sed -i "s|$srcdir/Python-${pkgver}:||" "$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}-${CARCH}-linux-gnu/Makefile"
+  sed -i "s|$srcdir/Python-${pkgver}:||" "$pkgdir/usr/lib/python${_pybasever}/config-${_pybasever}"*"-${CARCH}-linux-gnu/Makefile"

   # Add useful scripts FS#46146
   install -dm755 "${pkgdir}"/usr/lib/python${_pybasever}/Tools/{i18n,scripts}

I added a star * into config Makefile reference because the name is config-3.13t-x86_64-linux-gnu when compiling with GIL disabled.

jrd commented on 2024-06-04 14:53 (UTC)

@rixx Can you also provide a disable-gil version too ? That could be helpful to test this new experimental feature…

rixx commented on 2024-03-08 15:03 (UTC)

This was added to the Pyhton 3.12 PKGBUILD aswell, I just was too busy to take care of this one aswell, and was low-key hoping that somebody would send in a patch so I wouldn't have to (certainly a patch doesn't take more time than commenting here, right?)

change is live now

jakkdl commented on 2024-03-08 14:36 (UTC) (edited on 2024-03-08 14:38 (UTC) by jakkdl)

same issue & resolution with ax_cv_c_float_words_bigendian as dpvpro. Is this something that should be reported upstream (because they now fail to detect it for some reason) or something that should be added to the PKGBUILD?

EDIT: it might be https://github.com/python/cpython/issues/89640

dpvpro commented on 2024-03-02 01:12 (UTC) (edited on 2024-03-02 01:12 (UTC) by dpvpro)

ax_cv_c_float_words_bigendian=no yay -S python313 - is working

dpvpro commented on 2024-03-02 01:09 (UTC)

checking for __fpu_control... yes
checking for --with-libm=STRING... default LIBM="-lm"
checking for --with-libc=STRING... default LIBC=""
checking for x64 gcc inline assembler... yes
checking whether float word ordering is bigendian... unknown
configure: error:

Unknown float word ordering. You need to manually preset
ax_cv_c_float_words_bigendian=no (or yes) according to your system.