diff options
author | Pavle Portic | 2021-03-29 23:16:34 +0200 |
---|---|---|
committer | Pavle Portic | 2021-03-29 23:16:34 +0200 |
commit | affd3c29f6f8940e25346051a692ffb637c4e1e9 (patch) | |
tree | baa5dcc8c3b69da1608f581064dd48169ac471b4 | |
parent | 7bb320d798bd0c22332c1c5ff2eed5641e18d41f (diff) | |
download | aur-python-certifi-system-store.tar.gz |
Build wheel and install to perserve dist-info
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 9 insertions, 10 deletions
@@ -6,6 +6,7 @@ pkgbase = python-certifi-system-store arch = any license = MPL makedepends = python-setuptools + makedepends = python-wheel depends = python provides = python-certifi conflicts = python-certifi @@ -13,5 +14,4 @@ pkgbase = python-certifi-system-store sha256sums = 603be2b260ae2d5d025f584a219087683ff2ddcd09325ebb56b172cd07877057 pkgname = python-certifi-system-store - depends = python @@ -1,8 +1,8 @@ # Maintainer: Pavle Portic <archlinux@theedgeofrage.com> -pkgbase='python-certifi-system-store' -pkgname=('python-certifi-system-store') -_module='certifi-system-store' +pkgname='python-certifi-system-store' +_module=${pkgname/python-/} +_pypkgname='certifi_system_store' pkgver='3021.3.16' pkgrel=1 @@ -12,7 +12,7 @@ license=('MPL') arch=('any') depends=('python') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-wheel') provides=('python-certifi') conflicts=('python-certifi') @@ -20,12 +20,11 @@ source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$ sha256sums=('603be2b260ae2d5d025f584a219087683ff2ddcd09325ebb56b172cd07877057') build() { - cd "${srcdir}/${_module}-${pkgver}" - python setup.py build + cd "${srcdir}/${_module}-${pkgver}" + python setup.py dist_info + python setup.py bdist_wheel } package() { - depends+=() - cd "${srcdir}/${_module}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps "${srcdir}/${_module}-${pkgver}/dist/${_pypkgname}-${pkgver}-py3-none-any.whl" } |