mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
REF: set language level in cythonize options in setup.py (#2241)
This commit is contained in:
parent
112df9bab9
commit
e16206791d
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# cython: language_level=3, boundscheck=False, c_string_type=unicode, c_string_encoding=utf8"""
|
||||
# cython: boundscheck=False, c_string_type=unicode, c_string_encoding=utf8"""
|
||||
|
||||
"""Numpy-free base classes."""
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# cython: language_level=3, boundscheck=False
|
||||
# cython: boundscheck=False
|
||||
|
||||
"""Coordinate reference systems, class and functions.
|
||||
"""
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# cython: language_level=3
|
||||
include "gdal.pxi"
|
||||
|
||||
|
||||
cdef class ConfigEnv:
|
||||
cdef public object options
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# cython: language_level=3, c_string_type=unicode, c_string_encoding=utf8
|
||||
# cython: c_string_type=unicode, c_string_encoding=utf8
|
||||
|
||||
"""GDAL and OGR driver and configuration management
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
from libc.stdio cimport *
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
"""rasterio._err
|
||||
|
||||
Exception-raising wrappers for GDAL API functions.
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
"""Feature extraction"""
|
||||
|
||||
import logging
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
# cython: language_level=3
|
||||
# distutils: language = c++
|
||||
|
||||
"""Raster fill."""
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
cimport numpy as np
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# cython: language_level=3, boundscheck=False
|
||||
# cython: boundscheck=False
|
||||
|
||||
"""Rasterio input/output."""
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# cython: language_level=3, boundscheck=False, c_string_type=unicode, c_string_encoding=utf8
|
||||
# cython: boundscheck=False, c_string_type=unicode, c_string_encoding=utf8
|
||||
|
||||
"""Transforms."""
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
from rasterio._io cimport DatasetReaderBase
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
# cython: language_level=3
|
||||
# distutils: language = c++
|
||||
|
||||
"""Raster and vector warping and reprojection."""
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
# GDAL API definitions.
|
||||
|
||||
from libc.stdio cimport FILE
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
# cython: language_level=3
|
||||
|
||||
"""Raster file management."""
|
||||
|
||||
include "gdal.pxi"
|
||||
|
||||
2
setup.py
2
setup.py
@ -210,7 +210,7 @@ if (gdal_major_version, gdal_minor_version) >= (2, 3):
|
||||
cpp_ext_options['extra_compile_args'] = eca
|
||||
|
||||
# Configure optional Cython coverage.
|
||||
cythonize_options = {}
|
||||
cythonize_options = {"language_level": sys.version_info[0]}
|
||||
if os.environ.get('CYTHON_COVERAGE'):
|
||||
cythonize_options['compiler_directives'] = {'linetrace': True}
|
||||
cythonize_options['annotate'] = True
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user