Skip to content

Commit 863787e

Browse files
committed
BLD: Don't include python3.2 requirements in setup_requires if not on 3.2
1 parent d27ad85 commit 863787e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/basemap/setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ def run(self):
151151
item.replace(marker1, "").replace(marker2, "") for item in install_requires
152152
if item.endswith(marker1) or item.endswith(marker2)
153153
or "python_version" not in item]
154+
else:
155+
marker1 = '; python_version == "3.2"'
156+
setup_requires = [item for item in setup_requires if not item.endswith(marker1)]
157+
install_requires = [item for item in install_requires if not item.endswith(marker1)]
154158

155159
setup(**{
156160
"name":

0 commit comments

Comments
 (0)