Skip to content

Commit d5482fa

Browse files
committed
Add possibility to overwrite build cmd in ginstall
1 parent eea5890 commit d5482fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,10 @@ def _install_from_url(url, package, extra_opts=[], add_cflags="", ignore_errors=
452452
cflags = os_env.get("CFLAGS", "") + ((" " + add_cflags) if add_cflags else "")
453453
setup_env['CFLAGS'] = cflags if cflags else ""
454454

455+
user_build_cmd = os_env.get("GINSTALL_BUILD_CMD", "")
456+
if user_build_cmd:
457+
build_cmd = user_build_cmd.split(" ")
458+
455459
bare_name = _download_with_curl_and_extract(tempdir, url, quiet=quiet)
456460

457461
file_realpath = os.path.dirname(os.path.realpath(__file__))

0 commit comments

Comments
 (0)