Skip to content

Commit d57b91b

Browse files
committed
Work with Python 3.6+
functools.cache is only in Python 3.9 and is exactly functools.lru_cache(maxsize=None) Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent df73953 commit d57b91b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/scripts/utils_thirdparty.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def download_sdist(
312312
raise DistributionNotFound(f"Failed to fetch sdist: {name}=={version}: No sources found")
313313

314314

315-
@functools.cache
315+
@functools.lru_cache(maxsize=None)
316316
def get_package_versions(
317317
name,
318318
version=None,
@@ -2364,7 +2364,7 @@ def build_wheels_locally_if_pure_python(
23642364

23652365
def check_about(dest_dir=THIRDPARTY_DIR):
23662366
try:
2367-
subprocess.check_output(f"about check {dest_dir}".split())
2367+
subprocess.check_output(f"venv/bin/about check {dest_dir}".split())
23682368
except subprocess.CalledProcessError as cpe:
23692369
print()
23702370
print("Invalid ABOUT files:")

0 commit comments

Comments
 (0)