Skip to content

Commit 182835e

Browse files
committed
Fix component registration.
1 parent 5d41b66 commit 182835e

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,26 @@ def import_python_sources(args):
855855
# ----------------------------------------------------------------------------------------------------------------------
856856
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
857857
suite=SUITE,
858-
name='Graal.Python',
859-
short_name='pyn',
858+
name='Graal.Python license files',
859+
short_name='pynl',
860860
dir_name='python',
861861
license_files=['LICENSE_GRAALPYTHON'],
862862
third_party_license_files=['3rd_party_licenses_graalpython.txt'],
863+
truffle_jars=[],
864+
support_distributions=[
865+
'graalpython:GRAALPYTHON_GRAALVM_LICENSES',
866+
],
867+
priority=5
868+
))
869+
870+
871+
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
872+
suite=SUITE,
873+
name='Graal.Python',
874+
short_name='pyn',
875+
dir_name='python',
876+
license_files=[],
877+
third_party_license_files=[],
863878
truffle_jars=[
864879
'graalpython:GRAALPYTHON',
865880
],

mx.graalpython/suite.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,6 @@
360360
"extracted-dependency:graalpython:GRAALPYTHON_PYTHON_LIB",
361361
"file:mx.graalpython/native-image.properties",
362362
],
363-
"LICENSE_GRAALPYTHON": "file:LICENSE",
364-
"3rd_party_licenses_graalpython.txt": "file:3rd_party_licenses.txt",
365363
},
366364
"maven": False,
367365
},
@@ -375,5 +373,16 @@
375373
},
376374
"maven": False,
377375
},
376+
377+
"GRAALPYTHON_GRAALVM_LICENSES": {
378+
"native": True,
379+
"platformDependent": True,
380+
"description": "Graal.Python support distribution for the GraalVM license files",
381+
"layout": {
382+
"LICENSE_GRAALPYTHON": "file:LICENSE",
383+
"3rd_party_licenses_graalpython.txt": "file:3rd_party_licenses.txt",
384+
},
385+
"maven": False,
386+
},
378387
},
379388
}

0 commit comments

Comments
 (0)