Skip to content

Commit

Permalink
Import correct version parsing function
Browse files Browse the repository at this point in the history
  • Loading branch information
rayzchen committed Jul 11, 2023
1 parent 6600cba commit ae0f413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pip._internal.models.selection_prefs import SelectionPreferences
from pip._internal.models.target_python import TargetPython
from pip._internal.req.constructors import install_req_from_line
from pip._vendor import packaging
from pip._vendor.packaging.version import parse

archmapArg = {"x64": "amd64", "x86": "win32"}

Expand Down Expand Up @@ -74,7 +74,7 @@ def checkTools():
for req in ["pyopengl_accelerate", "pysdl2_dll", "pillow", "pyglm", "numpy",
"pyside6", "shiboken6", "pyside6_essentials", "pywin32"]:
if req == "numpy":
if packaging.version.parse(VERSION) < packaging.version.parse("3.9"):
if parse(VERSION) < parse("3.9"):
continue
wheels[1][req] = PypiLinkGetter.getLink(VERSION, ARCH, req)

Expand Down

0 comments on commit ae0f413

Please sign in to comment.