File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1700,10 +1700,18 @@ def build_cpython(
1700
1700
log ("copying %s to %s" % (source , dest ))
1701
1701
shutil .copyfile (source , dest )
1702
1702
1703
- shutil .copyfile (
1704
- cpython_source_path / "Tools" / "scripts" / "run_tests.py" ,
1705
- out_dir / "python" / "build" / "run_tests.py" ,
1706
- )
1703
+ # CPython 3.13 removed `run_tests.py`.
1704
+ if meets_python_minimum_version (python_version , "3.13" ):
1705
+ # TODO(zanieb): Write a script to invoke `python -m test --slow-ci`
1706
+ # or update the metadata to not require `run_tests.py`
1707
+ pathlib .Path (
1708
+ out_dir / "python" / "build" / "run_tests.py" ,
1709
+ ).touch ()
1710
+ else :
1711
+ shutil .copyfile (
1712
+ cpython_source_path / "Tools" / "scripts" / "run_tests.py" ,
1713
+ out_dir / "python" / "build" / "run_tests.py" ,
1714
+ )
1707
1715
1708
1716
licenses_dir = out_dir / "python" / "licenses"
1709
1717
licenses_dir .mkdir ()
You can’t perform that action at this time.
0 commit comments