Skip to content

Commit 391a91f

Browse files
committed
GraalPy Truffle resources: treat pyconfig.h as platform dependent
1 parent 9005b05 commit 391a91f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mx.graalpython/suite.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,16 +1233,17 @@
12331233
"description": "GraalVM Python header resources",
12341234
"layout": {
12351235
"./META-INF/resources/include/": [
1236-
"dependency:graalpy-pyconfig/<os>-<arch>/<multitarget_libc_selection>/pyconfig.h",
12371236
"file:graalpython/com.oracle.graal.python.cext/include/*",
12381237
],
12391238
},
12401239
"maven": False,
12411240
},
12421241

1243-
# The native libraries we ship. These are platform specific, and even
1244-
# the names of libraries are platform specific. So we already put them
1245-
# in the right folder structure here
1242+
# The native libraries we ship and pyconfig.h. These are platform specific,
1243+
# and even the names of libraries are platform specific. So we already put them
1244+
# in the right folder structure here; pyconfig.h is put into the right
1245+
# "include" directory, the structure must be kept in sync with how
1246+
# GRAALPYTHON_INCLUDE_RESOURCES is deployed
12461247
"GRAALPYTHON_NATIVE_RESOURCES": {
12471248
"native": True,
12481249
"platformDependent": True,
@@ -1265,6 +1266,7 @@
12651266
],
12661267
"./META-INF/resources/<os>/<arch>/Lib/venv/scripts/nt/graalpy.exe": "dependency:python-venvlauncher",
12671268
"./META-INF/resources/<os>/<arch>/Lib/venv/scripts/nt/python.exe": "dependency:python-venvlauncher",
1269+
"./META-INF/resources/<os>/<arch>/include/": "dependency:graalpy-pyconfig/<os>-<arch>/<multitarget_libc_selection>/pyconfig.h",
12681270
},
12691271
},
12701272
},
@@ -1275,6 +1277,7 @@
12751277
"dependency:GRAALPYTHON_NATIVE_LIBS/<os>/<arch>/*",
12761278
],
12771279
"./META-INF/resources/<os>/<arch>/lib/python<py_ver:major_minor>/venv/scripts/macos/graalpy": "dependency:python-macos-launcher",
1280+
"./META-INF/resources/<os>/<arch>/include/python<py_ver:major_minor>/": "dependency:graalpy-pyconfig/<os>-<arch>/<multitarget_libc_selection>/pyconfig.h",
12781281
}
12791282
}
12801283
},
@@ -1284,6 +1287,7 @@
12841287
"./META-INF/resources/<os>/<arch>/lib/graalpy<graal_ver:major_minor>/": [
12851288
"dependency:GRAALPYTHON_NATIVE_LIBS/<os>/<arch>/*",
12861289
],
1290+
"./META-INF/resources/<os>/<arch>/include/python<py_ver:major_minor>/": "dependency:graalpy-pyconfig/<os>-<arch>/<multitarget_libc_selection>/pyconfig.h",
12871291
},
12881292
},
12891293
},

0 commit comments

Comments
 (0)