diff options
author | Philipp A | 2022-02-19 16:04:26 +0100 |
---|---|---|
committer | Philipp A | 2022-02-19 16:04:26 +0100 |
commit | 8d564bc4b107fd9ff51865786136622931aa0693 (patch) | |
tree | b11cf2441b17fbe2d663333293bbe166217cc5df | |
parent | 5bf349bc445b2611ece6f8c012e72b897c9d2cf4 (diff) | |
download | aur-8d564bc4b107fd9ff51865786136622931aa0693.tar.gz |
build from source
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 |
3 files changed, 18 insertions, 17 deletions
@@ -1,11 +1,12 @@ pkgbase = scanpy pkgdesc = Single-Cell Analysis in Python pkgver = 1.8.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/theislab/scanpy arch = any license = BSD - makedepends = install-wheel-scripts + makedepends = python-build + makedepends = python-installer depends = python-anndata>=0.7.4 depends = python-numpy>=1.17.0 depends = python-matplotlib>=3.1.2 @@ -36,8 +37,7 @@ pkgbase = scanpy optdepends = python-scrublet: Cell doublet detection provides = scanpy provides = python-scanpy - noextract = scanpy-1.8.2-py3-none-any.whl - source = https://files.pythonhosted.org/packages/py3/s/scanpy/scanpy-1.8.2-py3-none-any.whl - sha256sums = f8c8a07c2bce9923840a215a817d4a293e5a052791ffd2850f5f0b7cb33e21d0 + source = https://files.pythonhosted.org/packages/source/s/scanpy/scanpy-1.8.2.tar.gz + sha256sums = 0c0baa6f08cec50b89b512cef3bfc7f612b215ce02c0fb49cc01c2acfbb2e9bb pkgname = scanpy diff --git a/.gitignore b/.gitignore index 9731419a6e92..7e480d700bee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /pkg/ /src/ -/*.pkg.tar.xz -/*.whl +/*.pkg.* +/*.tar.gz @@ -2,7 +2,7 @@ pkgname=scanpy pkgver=1.8.2 -pkgrel=1 +pkgrel=2 pkgdesc='Single-Cell Analysis in Python' arch=(any) provides=(scanpy python-scanpy) @@ -40,15 +40,16 @@ optdepends=( 'python-scanorama: Scanorama dataset integration algorithm' 'python-scrublet: Cell doublet detection' ) -makedepends=(install-wheel-scripts) -_wheel="$pkgname-$pkgver-py3-none-any.whl" -source=("https://files.pythonhosted.org/packages/py3/${pkgname::1}/$pkgname/$_wheel") -sha256sums=('f8c8a07c2bce9923840a215a817d4a293e5a052791ffd2850f5f0b7cb33e21d0') -noextract=("$_wheel") +makedepends=(python-build python-installer) +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") +sha256sums=('0c0baa6f08cec50b89b512cef3bfc7f612b215ce02c0fb49cc01c2acfbb2e9bb') + +build() { + cd "$pkgname-$pkgver" + python -m build --wheel --no-isolation --skip-dependency-check +} package() { - local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages" - install -d "$site" - unzip "$_wheel" -d "$site" - install-wheel-scripts --prefix="$pkgdir/usr" "$_wheel" + cd "$pkgname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl } |