aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-rasterio/10-cython.patch
blob: cdb7f45596f46e4d750f50918bbab73cc32de44a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: