There is also no need to use the -f parameter within the rm call. Please remove it together with the sudo.
While you are updating the PKGBUILD, please make sure to use quotation marks when using a variable in a string parameters. Missing that causes a package build to fail when the build path contains a space character.
Example:
bad: install -dm 755 $pkgdir/opt/$pkgname
good: install -dm 755 "$pkgdir/opt/$pkgname" (this variant is used in /usr/share/pacman/PKGBUILD.proto)
also good: install -dm 755 "$pkgdir"/opt/"$pkgname"
Pinned Comments
Meaulnes commented on 2026-03-27 16:37 (UTC)
This comment from @AvacadoCookie should be pinned, IMO.
If anyone is getting errors about
Cythonorsetuptools, and they are usingConda, that comment has the answer.If anyone is getting errors about
Cythonorsetuptools, and they are usingpyenv, there are 2 possible ways to fix it:pyenv local systemto set Python back to the system installed Python for this session.pip install Cython setuptoolsto install the necessary packages to your preferred python installation.AvocadoCookie commented on 2025-12-14 16:22 (UTC)
For all users with
ModuleNotFoundError: No module named 'Cython'or'setuptools'reported, please try the following methods to address the problem:condaenvironment. Now afterwhich pythontyped in console, the output should be/usr/bin/python.pacman -S cython python-setuptools.