Skip to content

Commit 8ac74ec

Browse files
committed
Use paatch to apply patches the same way across all platforms
1 parent c480ad9 commit 8ac74ec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/wheelbuilder/build_wheels.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,10 @@ def create_venv():
104104
subprocess.check_call([binary, "-m", "venv", "graalpy"])
105105
print("Installing wheel with", pip, flush=True)
106106
subprocess.check_call([pip, "install", "wheel"])
107-
if sys.platform == "win32":
108-
print("Installing python-patch-ng to provide patch.exe", flush=True)
109-
p = subprocess.run([pip, "install", "git+https://github.com/timfel/python-patch-ng.git"])
110-
if p.returncode != 0:
111-
print("Installing python-patch-ng failed, assuming patch.exe is on PATH", flush=True)
107+
print("Installing paatch to provide patch.exe", flush=True)
108+
p = subprocess.run([pip, "install", "paatch"])
109+
if p.returncode != 0:
110+
print("Installing paatch failed, assuming a GNU patch compatible binary is on PATH", flush=True)
112111
return pip
113112

114113

0 commit comments

Comments
 (0)