Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-support/python-bootstrap/PKGBUILD
blob: 2e42c71c789f51ddb046a315f0d7db33a5b56745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>

pkgname=python-bootstrap
pkgver=3.11
pkgrel=1
pkgdesc="Python Bootstrap"
arch=('any')
license=('PSF')
url="https://gitlab.archlinux.org/archlinux/python-bootstrap"
depends=('python')
makedepends=('git')
provides=('python-build' 'python-flit' 'python-flit-core' 'python-installer''python-setuptools' 'python-wheel' 'python-tomli')
source=("git+https://gitlab.archlinux.org/archlinux/python-bootstrap/#branch=$pkgver")
sha512sums=('SKIP')

export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0

prepare() {
  cd "${srcdir}/${pkgname}"
  git submodule init; git submodule update
}

build() {
  cd "${srcdir}/${pkgname}"
  python -m bootstrap.build
}

wheels=(
        build-0.9.0-py3-none-any.whl
        flit_core-3.7.1-py3-none-any.whl
        installer-0.5.1-py3-none-any.whl
        pep517-0.13.0-py3-none-any.whl
        setuptools-58.3.0.post20230511-py3-none-any.whl
        tomli-2.0.1-py3-none-any.whl
        wheel-0.37.0-py2.py3-none-any.whl
)

package() {
  cd "${srcdir}/${pkgname}"
  for wheel in "${wheels[@]}"; do
    python -m bootstrap.install --destdir="$pkgdir" "dist/$wheel"
  done
}