Skip to content

Commit 072dfe3

Browse files
author
Franziska Geiger
committed
Merge branch 'master' into topic/GR-15897-C-libraries
# Conflicts: # graalpython/com.oracle.graal.python.cext/include/Python.h # graalpython/com.oracle.graal.python.test/src/tests/test_posix.py
2 parents 5e3ff3c + e196ef0 commit 072dfe3

File tree

7 files changed

+44
-20
lines changed

7 files changed

+44
-20
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
This changelog summarizes major changes between GraalVM versions of the Python
44
language runtime. The main focus is on user-observable behavior of the engine.
55

6+
## Version 19.0.0
7+
8+
* Fix an issue preventing use of encodings in the installable binary
9+
* Fix return value of process when `os.exit` is called with a boolean
10+
* Fix interpretation of foreign objects to prefer interpreting them as integer over double
11+
* Fix performance regression when repeatedly creating a new function in a loop
12+
613
## Version 1.0.0 RC16
714

815
* No user-facing changes

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Product License - GraalVM Community Edition 1.0 Python Language
1+
Product License - GraalVM Community Edition 20.0 Python Language
22
Component
33

4-
This is a release of GraalVM Community Edition 1.0 Python Language Component.
4+
This is a release of GraalVM Community Edition 20.0 Python Language Component.
55
This particular copy of the software is released under Universal Permissive
66
License (UPL) v. 1.0.
77
Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
local labsjdk8Mixin = {
130130
downloads +: {
131-
JAVA_HOME: utils.download("labsjdk", "8u202-jvmci-0.59"),
131+
JAVA_HOME: utils.download("oraclejdk", "8u212-jvmci-20-b01"),
132132
EXTRA_JAVA_HOMES : { pathlist: [utils.download("oraclejdk", "11+28")] },
133133
},
134134
environment +: {

graalpython/com.oracle.graal.python.test/src/tests/test_posix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_execl(self):
7171
import sys
7272
new_file_path, cwd = self.create_file()
7373
# os.execl(new_file_path, [new_file_path, 'the_input'])
74-
os.system("%s -c \"import os; os.execl('%s', ['%s', 'the_input'])\"" % (sys.executable, new_file_path, new_file_path))
74+
os.system("%s -c \"import os; os.execl('%s', *['%s', 'the_input'])\"" % (sys.executable, new_file_path, new_file_path))
7575
assert os.path.isfile(cwd + '/test.txt')
7676
self.delete_file(new_file_path, cwd)
7777

mx.graalpython/mx_graalpython.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -907,13 +907,28 @@ def import_python_sources(args):
907907
# register as a GraalVM language
908908
#
909909
# ----------------------------------------------------------------------------------------------------------------------
910+
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
911+
suite=SUITE,
912+
name='Graal.Python license files',
913+
short_name='pynl',
914+
dir_name='python',
915+
license_files=['LICENSE_GRAALPYTHON.txt'],
916+
third_party_license_files=['3rd_party_licenses_graalpython.txt'],
917+
truffle_jars=[],
918+
support_distributions=[
919+
'graalpython:GRAALPYTHON_GRAALVM_LICENSES',
920+
],
921+
priority=5
922+
))
923+
924+
910925
mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
911926
suite=SUITE,
912927
name='Graal.Python',
913928
short_name='pyn',
914929
dir_name='python',
915-
license_files=['LICENSE_GRAALPYTHON'],
916-
third_party_license_files=['3rd_party_licenses_graalpython.txt'],
930+
license_files=[],
931+
third_party_license_files=[],
917932
truffle_jars=[
918933
'graalpython:GRAALPYTHON',
919934
],
@@ -926,10 +941,8 @@ def import_python_sources(args):
926941
destination='bin/<exe:graalpython>',
927942
jar_distributions=['graalpython:GRAALPYTHON-LAUNCHER'],
928943
main_class='com.oracle.graal.python.shell.GraalPythonMain',
929-
build_args=[
930-
'--language:python',
931-
'--language:llvm',
932-
]
944+
build_args=[],
945+
language='python',
933946
)
934947
],
935948
))

mx.graalpython/native-image.properties

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# This file contains native-image arguments needed to build graalpython
22
#
33

4-
ImageName = graalpython
5-
6-
Requires = tool:regex language:llvm
7-
8-
LauncherClass = com.oracle.graal.python.shell.GraalPythonMain
9-
LauncherClassPath = lib/graalvm/launcher-common.jar:lib/graalvm/graalpython-launcher.jar
4+
Requires = language:regex language:llvm
105

116
JavaArgs = -Xmx4G -Dpolyglot.engine.PreinitializeContexts=python
127

mx.graalpython/suite.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "graalpython",
1010
"versionConflictResolution": "latest",
1111

12-
"version": "1.0.0-rc18",
12+
"version": "20.0.0-beta.01",
1313
"release": False,
1414
"groupId": "org.graalvm.graalpython",
1515
"url": "http://www.graalvm.org/",
@@ -44,7 +44,7 @@
4444
},
4545
{
4646
"name": "sulong",
47-
"version": "87c4ce8eabe466ce13adb10a1bf527b8dc1e8c3b",
47+
"version": "445077de669592367c0519ed38e5e1e5cbd7267d",
4848
"subdir": True,
4949
"urls": [
5050
{"url": "https://github.com/oracle/graal", "kind": "git"},
@@ -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.txt": "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)