1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/py3-rasterio/10-cython.patch
Holger Jaekel 380daa9376 testing/py3-rasterio: new aport
https://pypi.python.org/pypi/rasterio
Fast and direct raster I/O for use with Numpy and SciPy
2019-12-15 18:55:39 +01:00

15 lines
574 B
Diff

Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: use language level 3 for cython
----
--- a/setup.py
+++ b/setup.py
@@ -304,7 +304,7 @@ if os.path.exists("MANIFEST.in") and "cl
'rasterio.shutil', ['rasterio/shutil.pyx'], **ext_options),
Extension(
'rasterio._transform', ['rasterio/_transform.pyx'], **ext_options)],
- quiet=True, **cythonize_options)
+ quiet=True, compiler_directives={'language_level' : "2"}, **cythonize_options)
# If there's no manifest template, as in an sdist, we just specify .c files.
else: