Skip to content

Commit 8ab734d

Browse files
committed
Remove outdated Cython switches in basemap setup.py
1 parent 4dfa932 commit 8ab734d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/basemap/setup.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
from setuptools.command.sdist import sdist
1515
from setuptools.extension import Extension
1616

17-
try:
18-
import Cython
19-
cython_major_version = int(Cython.__version__.split(".", 1)[0])
20-
except ImportError:
21-
cython_major_version = 0
22-
2317

2418
def get_content(name, splitlines=False):
2519
"""Return the file contents with project root as root folder."""
@@ -162,7 +156,7 @@ def run(self):
162156
for ext in ext_modules:
163157
ext.cython_directives = [
164158
("language_level", str(sys.version_info[0])),
165-
][:1 + int(cython_major_version >= 3)]
159+
]
166160

167161
setup(**{
168162
"name":

0 commit comments

Comments
 (0)