Skip to content

Commit 261d06e

Browse files
committed
expose capi home, if custom set
1 parent f22798e commit 261d06e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SysModuleBuiltins.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public void postInitialize(PythonCore core) {
195195
sys.setAttribute("graal_python_home", context.getLanguage().getHome());
196196
sys.setAttribute("graal_python_core_home", coreHome);
197197
sys.setAttribute("graal_python_stdlib_home", stdlibHome);
198+
sys.setAttribute("graal_python_capi_home", capiHome);
198199
sys.setAttribute("__flags__", core.factory().createTuple(new Object[]{
199200
false, // bytes_warning
200201
!PythonOptions.getFlag(context, PythonOptions.PythonOptimizeFlag), // debug

graalpython/lib-python/3/distutils/sysconfig_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _init_posix():
8080
g['CCSHARED'] = "-fPIC"
8181
g['LDSHARED_LINUX'] = "%s -shared -fPIC" % sys.__graal_get_toolchain_path('CC')
8282
if darwin_native:
83-
capi_home = sys.graal_python_core_home
83+
capi_home = sys.graal_python_capi_home
8484
g['LDSHARED'] = g['LDSHARED_LINUX'] + " -L" + capi_home + " -lpython." + so_abi + " -Wl,-rpath," + capi_home
8585
else:
8686
g['LDSHARED'] = g['LDSHARED_LINUX']

0 commit comments

Comments
 (0)