I had to change "dist/Cartopy-$pkgver-"*.whl
to "dist/cartopy-$pkgver-"*.whl
to make it build (lines 62 and 77 in PKGBUILD).
Search Criteria
Package Details: python-cartopy 0.24.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-cartopy.git (read-only, click to copy) |
---|---|
Package Base: | python-cartopy |
Description: | A cartographic Python library with Matplotlib support for visualisation |
Upstream URL: | https://scitools.org.uk/cartopy/ |
Licenses: | BSD-3-Clause |
Submitter: | gauteh |
Maintainer: | gauteh (bcb) |
Last Packager: | bcb |
Votes: | 10 |
Popularity: | 0.000001 |
First Submitted: | 2015-11-16 16:00 (UTC) |
Last Updated: | 2024-11-22 12:04 (UTC) |
Dependencies (22)
- python-matplotlib (python-matplotlib-gitAUR)
- python-numpy (python-numpy-gitAUR, python-numpy1AUR, python-numpy-mkl-binAUR, python-numpy-mklAUR, python-numpy-mkl-tbbAUR)
- python-pillow (python-pillow-simd-gitAUR)
- python-pyproj
- python-pyshpAUR
- python-scipy (python-scipy-gitAUR, python-scipy-mkl-binAUR, python-scipy-mkl-tbbAUR, python-scipy-mklAUR)
- python-shapely
- cython (cython-gitAUR) (make)
- python-build (make)
- python-installer (make)
- python-setuptools (make)
- python-setuptools-scm (make)
- python-wheel (make)
- python-flufl-lock (check)
- python-pytest (check)
- python-pytest-mpl (check)
- python-beautifulsoup4 (optional) – for use with SRTM data
- python-fiona (optional) – faster shapefile reading
- python-gdal (python-gdal-hdf4AUR, python-gdal-libkml-filegdbAUR, python-gdal-libkmlAUR, python-gdal-ecwAUR) (optional) – for use with SRTM data
- python-owslib (optional) – access OGC clients
- Show 2 more dependencies...
Required by (14)
- pyqso (optional)
- pyresample (optional)
- python-alphashape
- python-argopy (optional)
- python-geoplot
- python-geoviews
- python-goes2go
- python-metpy (check)
- python-metpy (optional)
- python-nvector
- python-obspy (optional)
- python-xmovie
- pythonprop
- pythonprop-git
Sources (1)
hansc commented on 2025-06-16 09:32 (UTC)
Auerhuhn commented on 2024-04-12 10:22 (UTC)
Hi gauteh,
Upstream has now released v0.23.0.
Suggested patch for the PKGBUILD: https://salsa.debian.org/-/snippets/709
You can apply the patch to this PKGBUILD if you like:
curl -LO https://salsa.debian.org/-/snippets/709/raw/main/python-cartopy-0.23.0-1.patch
less python-cartopy-0.23.0-1.patch
patch -p1 < python-cartopy-0.23.0-1.patch
Regards
Claudia
Auerhuhn commented on 2024-04-10 11:43 (UTC) (edited on 2024-04-12 10:23 (UTC) by Auerhuhn)
Update: Superseded as upstream has released version 0.23.0.
There are new test failures, see upstream PR #2365.
I have uploaded a patch for this PKGBUILD: https://salsa.debian.org/-/snippets/708
You can apply the patch to this PKGBUILD if you like:
curl -LO https://salsa.debian.org/-/snippets/708/raw/main/python-cartopy-0.22.0-2.patch
less python-cartopy-0.22.0-2.patch
git apply python-cartopy-0.22.0-2.patch
Regards
Claudia
DeltaV commented on 2024-04-03 18:23 (UTC) (edited on 2024-04-03 18:30 (UTC) by DeltaV)
One more data point. I tried to update to v0.22 today and received the following error:
Successfully built Cartopy-0.22.0-cp311-cp311-linux_x86_64.whl
==> Starting check()...
ImportError while loading conftest '/home/dkruse/.cache/paru/clone/python-cartopy/src/Cartopy-0.22.0/build/lib.linux-x86_64-cpython-311/cartopy/tests/conftest.py'.
cartopy/__init__.py:108: in <module>superbolide
import cartopy.feature # noqa: E402,F401 (unused import)
cartopy/feature/__init__.py:19: in <module>
import cartopy.io.shapereader as shapereader
cartopy/io/shapereader.py:35: in <module>
import shapefile
E ModuleNotFoundError: No module named 'shapefile'
==> ERROR: A failure occurred in check().
Aborting...
error: failed to build 'python-cartopy-0.22.0-1':
error: packages failed to build: python-cartopy-0.22.0-1
I have python-pyshp
installed. I was able to install this package using --nocheck
.
Nestor_013 commented on 2023-12-08 12:12 (UTC)
Builds fine including tests (with some warnings) for me too. Thx.
MarsSeed commented on 2023-12-08 11:45 (UTC)
It builds and installs fine for me.
One polite request: please kindly remove the tests
dir from the package by adding the lines marked with +
:
package() {
cd "$_pypi-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
+
+ echo 'Removing tests dir from package...'
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ rm -rv "${pkgdir}${site_packages}/cartopy/tests"
}
bcb commented on 2023-12-08 10:48 (UTC)
The currently enabled tests pass (repeatedly) for me in a clean chroot. I am reluctant to disable too many tests in the PKGBUILD, especially when I cannot reproduce the failures and make sure I am disabling the correct test for a build failure reported by somebody else. For now, if you run into failures you may have to build with --nocheck
. I am hoping to make the checks more robust -- suggestions welcome!
bcb commented on 2023-12-08 10:48 (UTC)
Sorry for the delay, somehow this package fell off my radar (and off my nvchecker configuration).
Nestor_013 commented on 2023-09-08 08:07 (UTC)
For those of you who are missing this package, I've made a crude but working PKGBUILD for version 0.22
https://gist.github.com/nestor013/b83456893bd7c7789c2790638027929a#file-pkgbuild
Pinned Comments
bcb commented on 2023-12-08 10:48 (UTC)
The currently enabled tests pass (repeatedly) for me in a clean chroot. I am reluctant to disable too many tests in the PKGBUILD, especially when I cannot reproduce the failures and make sure I am disabling the correct test for a build failure reported by somebody else. For now, if you run into failures you may have to build with
--nocheck
. I am hoping to make the checks more robust -- suggestions welcome!