We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfa932 commit 8ab734dCopy full SHA for 8ab734d
packages/basemap/setup.py
@@ -14,12 +14,6 @@
14
from setuptools.command.sdist import sdist
15
from setuptools.extension import Extension
16
17
-try:
18
- import Cython
19
- cython_major_version = int(Cython.__version__.split(".", 1)[0])
20
-except ImportError:
21
- cython_major_version = 0
22
-
23
24
def get_content(name, splitlines=False):
25
"""Return the file contents with project root as root folder."""
@@ -162,7 +156,7 @@ def run(self):
162
156
for ext in ext_modules:
163
157
ext.cython_directives = [
164
158
("language_level", str(sys.version_info[0])),
165
- ][:1 + int(cython_major_version >= 3)]
159
+ ]
166
160
167
161
setup(**{
168
"name":
0 commit comments