Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4eb5990

Browse filesBrowse files
committed
Get python-patch-ng to provide patch.exe on windows
1 parent 0b6e9cb commit 4eb5990
Copy full SHA for 4eb5990

1 file changed

+5Lines changed: 5 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/wheelbuilder/build_wheels.py‎

Copy file name to clipboardExpand all lines: scripts/wheelbuilder/build_wheels.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ def create_venv():
101101
subprocess.check_call([binary, "-m", "venv", "graalpy"])
102102
print("Installing wheel with", pip, flush=True)
103103
subprocess.check_call([pip, "install", "wheel"])
104+
if sys.platform == "win32":
105+
print("Installing python-patch-ng to provide patch.exe", flush=True)
106+
p = subprocess.run([pip, "install", "git+https://github.com/timfel/python-patch-ng.git"])
107+
if p.returncode != 0:
108+
print("Installing python-patch-ng failed, assuming patch.exe is on PATH", flush=True)
104109
return pip
105110

106111

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.