Skip to content

Commit dfc92d0

Browse files
committed
Disable using PyPI mirror for license check
1 parent 0e9b614 commit dfc92d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import mx_unittest
5555
import mx_sdk
5656
import mx_subst
57-
import mx_urlrewrites
5857
import mx_graalpython_bisect
5958
from mx_gate import Task
6059
from mx_graalpython_bench_param import PATH_MESO, BENCHMARKS, WARMUP_BENCHMARKS, JBENCHMARKS, PARSER_BENCHMARKS, \
@@ -1404,7 +1403,9 @@ def _python_checkpatchfiles():
14041403
with open(listfilename, "w") as listfile:
14051404
mx.run(["git", "ls-tree", "-r", "HEAD", "--name-only"], out=listfile)
14061405
try:
1407-
pypi_base_url = mx_urlrewrites.rewriteurl("https://pypi.org/packages/").replace("packages/", "")
1406+
# TODO our mirror doesn't handle the json API
1407+
# pypi_base_url = mx_urlrewrites.rewriteurl("https://pypi.org/packages/").replace("packages/", "")
1408+
pypi_base_url = "https://pypi.org/"
14081409
with open(listfilename, "r") as listfile:
14091410
content = listfile.read()
14101411
patchfile_pattern = re.compile(r"lib-graalpython/patches/([^/]+)/(sdist|whl)/.*\.patch")

0 commit comments

Comments
 (0)