Package Details: python39 3.9.12-1

Git Clone URL: (read-only, click to copy)
Package Base: python39
Description: Major release 3.9 of the Python high-level programming language
Upstream URL:
Licenses: custom
Provides: python
Submitter: rixx
Maintainer: rixx
Last Packager: rixx
Votes: 14
Popularity: 2.37
First Submitted: 2021-12-13 11:56 (UTC)
Last Updated: 2022-03-24 23:09 (UTC)

Required by (10851)

Sources (2)

Latest Comments

rixx commented on 2022-03-17 13:10 (UTC) (edited on 2022-03-17 13:12 (UTC) by rixx)

I don't see what's the problem

@lahwaacz I thought I had put that in my comment, but apparently not? Updates do not apply, complaining that /usr/bin/pip or /bin/pip exists in the filesystem (I swear I had intended to put that in my comment, sorry). Shipping a PKGBUILD that doesn't allow people to update isn't great, so I reverted the change for now.

you could just add something like rm -f "${pkgdir}/usr/bin/pip"

As I said: I do not have the time right now, so I chose to revert the change that breaks the package for people. Either I get around to tinkering with the PKGBUILD when I'm not working insane hours, or somebody sends in a patch.

lahwaacz commented on 2022-03-17 07:04 (UTC) (edited on 2022-03-17 07:07 (UTC) by lahwaacz)

@rixx I don't see what's the problem, the package contained only these files in /usr/bin (on version 3.9.11-2, i.e. before the last change):

$ pacman -Ql python39 | grep usr/bin
python39 /usr/bin/
python39 /usr/bin/2to3-3.9
python39 /usr/bin/idle3.9
python39 /usr/bin/pip3.9
python39 /usr/bin/pydoc3.9
python39 /usr/bin/python3.9
python39 /usr/bin/python3.9-config

So there is no conflict between python39 and python-pip. In any case, you could just add something like rm -f "${pkgdir}/usr/bin/pip" to the package() function, it's already done for some files in /usr/lib...

rixx commented on 2022-03-16 23:54 (UTC)

It turns out that --without-ensurepip is required for updates to apply cleanly. I've reintroduced the option so that people can get the latest update.

I don't have the time to figure out how to tell Python (or the pkgbuild) to only introduce a versioned pip executable, not the general one (which is what makes updates fail: /usr/bin/pip already exists). Anybody who has five minutes to fix this, feel free to send me a patch via mail or a PR.

rixx commented on 2022-03-11 22:38 (UTC)

Done, hope this doesn't break the build for other systems.

CyberShadow commented on 2022-03-11 21:03 (UTC)

Seeing the same issue as lahwaacz, would you mind adding the fix to the package please?

lahwaacz commented on 2022-03-02 21:57 (UTC)

I'm getting

configure: error:

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

I've solved it by adding export ax_cv_c_float_words_bigendian=no before the configure command.

rixx commented on 2022-03-02 11:04 (UTC)

Good point, done.

lahwaacz commented on 2022-02-12 03:15 (UTC)

Please remove the --without-ensurepip option and add python39-pip and python39-setuptools to provides. This allows to quickly build many other python modules for python39 without having to rebuild python-pip and python-setuptools (which have dozens of other dependencies) "properly".

hyc3573 commented on 2022-01-26 14:01 (UTC)

I found the solution.

Aviroblox commented on 2022-01-21 21:19 (UTC) (edited on 2022-01-25 00:10 (UTC) by Aviroblox)

I'm getting this error when updating to 3.9.10 from 3.9.9

LD_LIBRARY_PATH=/home/avanish/.cache/yay/python39/src/Python-3.9.10 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'    _TCLTK_INCLUDES='' _TCLTK_LIBS=''      ./python -E ./  build
Traceback (most recent call last):
  File "/home/avanish/.cache/yay/python39/src/Python-3.9.10/./", line 36, in <module>
    from distutils.command.install import install
  File "/home/avanish/.local/lib/python3.9/site-packages/setuptools/_distutils/command/", line 20, in <module>
    from .. import _collections
  File "/home/avanish/.local/lib/python3.9/site-packages/setuptools/", line 16, in <module>
    import setuptools.version
  File "/home/avanish/.local/lib/python3.9/site-packages/setuptools/", line 1, in <module>
    import pkg_resources
  File "/home/avanish/.local/lib/python3.9/site-packages/pkg_resources/", line 23, in <module>
    import zipfile
  File "/home/avanish/.cache/yay/python39/src/Python-3.9.10/Lib/", line 6, in <module>
    import binascii
ModuleNotFoundError: No module named 'binascii'
make: *** [Makefile:640: sharedmods] Error 1
make: *** Waiting for unfinished jobs....

vhsdev commented on 2022-01-01 11:54 (UTC)

Python requires a bluetooth library to build‽

Only if the crypto wallet requiring this package to build is able to connect to the Internet of Bodies. I believe the electron-cash wallet relies on py39. Just saying.

rixx commented on 2021-12-15 10:59 (UTC)

While this package was deleted, I adjusted the PKGBUILD to match the official ABS Python PKGBUILD, on the assumption that Arch maintainers know better than me what is needed to build Python. Feel free to remove (either for yourself or via a PR) if not actually needed.

alerque commented on 2021-12-15 10:03 (UTC)

Python requires a bluetooth library to build‽