Package Details: python313 3.13.0-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: 2
Popularity: 0.40
First Submitted: 2023-10-14 12:11 (UTC)
Last Updated: 2024-10-10 21:56 (UTC)

Dependencies (15)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

Jona commented on 2024-10-26 10:06 (UTC)

Thanks @jrd for his comments, but I had to make more changes to successfully build the package when using --disable-gil configuration flag:

diff --git a/PKGBUILD b/PKGBUILD
index 17c1888..287db2c 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}

And I get some warnings after building:

==> Buscando problemas de empaquetado...
==> ADVERTENCIA: El paquete contiene referencias a $srcdir
usr/lib/python3.13t/__pycache__/_sysconfigdata_t_linux_x86_64-linux-gnu.cpython-313.pyc
usr/lib/python3.13t/__pycache__/_sysconfigdata_t_linux_x86_64-linux-gnu.cpython-313.opt-1.pyc
usr/lib/python3.13t/__pycache__/_sysconfigdata_t_linux_x86_64-linux-gnu.cpython-313.opt-2.pyc
usr/lib/python3.13t/config-3.13t-x86_64-linux-gnu/Makefile
usr/lib/python3.13t/_sysconfigdata_t_linux_x86_64-linux-gnu.py

jrd commented on 2024-08-02 16:36 (UTC)

Thank you! I’ve made the adaptation myself in the PKGBUILD, and left a message to see if it is possible for others.

I did not flag the package as obsolete, someone else did.

Anyway, thank you for the quick update.

rixx commented on 2024-08-02 15:23 (UTC)

@jrd I have limited time, so I can't guarantee updates within 48h of new releases. However, the PKGBUILD contains contributing instructions that speed up updates (whereas comments do not 😉).

update is now up and live.

jrd commented on 2024-08-02 14:28 (UTC)

Can it be upgraded to rc1 please?

https://www.python.org/downloads/release/python-3130rc1/

bcb commented on 2024-07-24 16:13 (UTC)

I have created a package which builds with the experimental free-threaded mode (the Python name for the no-GIL option) enabled: python313-freethreaded. It can be installed alongside this package as enabling free-threaded mode adds a t suffix to binaries and libraries etc.

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