mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Contributor: Aiden Grossman <agrossma154@yahoo.com>
 | |
| # Maintainer: Aiden Grossman <agrossman154@yahoo.com>
 | |
| pkgname=py3-contourpy
 | |
| pkgver=1.0.7
 | |
| pkgrel=0
 | |
| pkgdesc="Python library for calculating contours in 2D quadrilateral grids Resources"
 | |
| url="https://github.com/contourpy/contourpy"
 | |
| arch="all"
 | |
| license="BSD-3-Clause"
 | |
| depends="python3 py3-numpy"
 | |
| makedepends="py3-setuptools py3-pybind11-dev python3-dev"
 | |
| checkdepends="pytest py3-matplotlib"
 | |
| source="$pkgname-$pkgver.tar.gz::https://github.com/contourpy/contourpy/archive/refs/tags/v$pkgver.tar.gz"
 | |
| builddir="$srcdir/contourpy-$pkgver"
 | |
| options="!check" # circular dependency with matplotlib
 | |
| 
 | |
| build() {
 | |
| 	python3 setup.py build
 | |
| }
 | |
| 
 | |
| check() {
 | |
| 	python3 -m venv --clear --without-pip --system-site-packages test-env
 | |
| 	test-env/bin/python3 setup.py install
 | |
| 	test-env/bin/python3 -m pytest
 | |
| }
 | |
| 
 | |
| package() {
 | |
| 	python3 setup.py install --skip-build --root="$pkgdir"
 | |
| }
 | |
| 
 | |
| sha512sums="
 | |
| 64edcfc911b3d7af9b422058d1f595c05d64f7fca8511ea199d30fa52854aee53a7c7dd95e2f47964f57e7764ce6b7b05c8ccee5ed0309eb5daa822d488ce0ff  py3-contourpy-1.0.7.tar.gz
 | |
| "
 |