Package Details: python-selectolax 0.4.6-1

Git Clone URL: https://aur.archlinux.org/python-selectolax.git (read-only, click to copy)
Package Base: python-selectolax
Description: Fast HTML5 parser with CSS selectors
Upstream URL: https://github.com/rushter/selectolax
Licenses: MIT
Submitter: lmartinez-mirror
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 0
Popularity: 0.000000
First Submitted: 2022-03-13 21:04 (UTC)
Last Updated: 2025-12-09 16:08 (UTC)

Latest Comments

quietvoid commented on 2025-06-16 01:07 (UTC)

Forgot to update the checksum for v0.3.30

fam007e commented on 2025-06-10 11:54 (UTC)

Fixing Selectolax AUR Installation Issues
Problem

The AUR python-selectolax package was failing to install due to build issues with the upstream source.

Solution

Generate a proper source distribution tarball from the cloned repository and use it for the AUR package.

Steps to Fix
1. Clone and Setup Repository
cd ~/Github/
git clone https://github.com/rushter/selectolax.git
cd selectolax
2. Create Python Virtual Environment
python -m venv .venv
source .venv/bin/activate
3. Install Build Dependencies
pip install Cython==3.0.11 setuptools wheel
4. Initialize Submodules
git submodule update --init --recursive
5. Build Source Distribution
# Build extensions in place with Cython
python setup.py build_ext --inplace --cython

# Create the source distribution tarball
python setup.py sdist
6. Copy Tarball to AUR Package Directory
# Copy the generated tarball to your AUR helper's python-selectolax folder
cp dist/selectolax-*.tar.gz /path/to/aur-helper/python-selectolax/
7. Update PKGBUILD
  • Edit the PKGBUILD to point to the local tarball
  • Update the SHA verification hash for the new tarball:
sha512sum selectolax-*.tar.gz
8. Generate New .SRCINFO
makepkg --printsrcinfo > .SRCINFO
9. Install Package
makepkg -si
Result

The package now installs successfully using the properly built source distribution that includes all necessary Cython extensions and submodules (lexbor and modest parsers).

Why This Works
  • The original AUR package source may have been missing submodules or new version for Cython compilation
  • Building the source distribution locally ensures all dependencies and extensions are properly included
  • The generated tarball is identical to what would be produced by the official GitHub release workflow