8.62. Wheel-0.45.1

Wheel is a Python library that is the reference implementation of the Python wheel packaging standard.

Approximate build time: less than 0.1 SBU
Required disk space: 1.6 MB

8.62.1. Installation of Wheel

Create the PKGBUILD for the Wheel package with the following commands:

mkdir /sources/wheel
cd /sources/wheel
cat > PKGBUILD << "REALEOF"
# Maintainer: Linux From Scratch <lfs-dev@lists.linuxfromscratch.org>

pkgname="wheel"
pkgver="0.45.1"
pkgrel="1"
pkgdesc="The wheel module is the reference implementation of the Python wheel packaging standard."
arch=('any')
url="https://pypi.org/project/wheel/"
license=('custom'
         'MIT')
groups=('core')
depends=('python')
makedepends=('flit-core')
source=('https://pypi.org/packages/source/w/wheel/wheel-0.45.1.tar.gz')
md5sums=('dddc505d0573d03576c7c6c5a4fe0641')
    
build(){
  cd "${pkgname}-${pkgver}"
  pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
}
package(){
  cd "${pkgname}-${pkgver}"
  pip3 install --root "${pkgdir}" --no-index --find-links dist wheel
}
REALEOF

Prepare the build directory for the pacman user and build the package:

chown -R root:pacman .
chmod 2775 .
chmod 664 PKGBUILD
su pacman -c 'makepkg -L --nodeps'

Add the newly created package to the central package repository:

cp wheel-0.45.1-1-any.pkg.tar.xz \
   /srv/pacman/repos/LFS/
repo-add /srv/pacman/repos/LFS/LFS.db.tar.xz \
         /srv/pacman/repos/LFS/wheel-0.45.1-1-any.pkg.tar.xz

Update the local cache and install the Wheel package:

pacman -Syu
pacman -S wheel --overwrite \* -dd --noconfirm

Finally, copy the source files into the source repository and clean up the build directory:

mkdir /srv/pacman/source/LFS/wheel
cp PKGBUILD /srv/pacman/source/LFS/wheel
cd /sources
rm -rf wheel

8.62.2. Contents of Wheel

Installed program: wheel
Installed directories: /usr/lib/python3.13/site-packages/wheel and /usr/lib/python3.13/site-packages/wheel-0.45.1.dist-info

Short Descriptions

wheel

is a utility to unpack, pack, or convert wheel archives