Skip to content

Commit f6928d5

Browse files
author
Franziska Geiger
committed
Merge branch 'master' into topic/GR-15977-os.exec-with-os.environ
# Conflicts: # graalpython/com.oracle.graal.python.cext/include/Python.h # graalpython/com.oracle.graal.python.test/src/tests/test_posix.py # graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java
2 parents a001924 + e196ef0 commit f6928d5

File tree

11 files changed

+45
-197
lines changed

11 files changed

+45
-197
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.cext/include/Python.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@
121121
#include "iterobject.h"
122122
#include "datetime.h"
123123
#include "typeslots.h"
124-
#include "weakrefobject.h"
125-
#include "sysmodule.h"
126124

127125
// TODO: we must extend the refcounting behavior to support handles to managed objects
128126
#undef Py_DECREF

graalpython/com.oracle.graal.python.cext/include/sysmodule.h

Lines changed: 0 additions & 47 deletions
This file was deleted.

graalpython/com.oracle.graal.python.cext/include/weakrefobject.h

Lines changed: 0 additions & 126 deletions
This file was deleted.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ def test_execl(self):
6868
# test creates a shell script, which again creates a file, to ensure script execution
6969
# Both files are deleted again in the end
7070
new_file_path, cwd = self.create_file()
71-
os.system("%s -c \"import os; os.execl('%s', ['%s', 'the_input'])\"" % (sys.executable, new_file_path, new_file_path))
71+
os.system("%s -c \"import os; os.execl('%s', *['%s', 'the_input'])\"" % (sys.executable, new_file_path, new_file_path))
7272
assert os.path.isfile(cwd + '/test.txt')
7373
self.delete_file(new_file_path, cwd)
7474

7575
def test_execv_with_env(self):
7676
new_file_path, cwd = self.create_file()
7777
with open(new_file_path, 'w') as script:
7878
script.write('echo $ENV_VAR> {}/test.txt\n'.format(cwd))
79-
os.system("%s -c \"import os; os.environ['ENV_VAR']='the_text'; os.execl('%s', ['%s', 'the_input'])\"" % (sys.executable, new_file_path, new_file_path))
79+
os.system("%s -c \"import os; os.environ['ENV_VAR']='the_text'; os.execv('%s', ['%s', 'the_input'])\"" % (sys.executable, new_file_path, new_file_path))
8080
assert os.path.isfile(cwd + '/test.txt')
8181
with open(cwd+'/test.txt', 'r') as result:
8282
assert 'the_text' in result.readline()

mx.graalpython/copyrights/overrides

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ graalpython/com.oracle.graal.python.cext/include/setobject.h,python.copyright
9797
graalpython/com.oracle.graal.python.cext/include/sliceobject.h,python.copyright
9898
graalpython/com.oracle.graal.python.cext/include/structmember.h,python.copyright
9999
graalpython/com.oracle.graal.python.cext/include/structseq.h,python.copyright
100-
graalpython/com.oracle.graal.python.cext/include/sysmodule.h,python.copyright
101100
graalpython/com.oracle.graal.python.cext/include/traceback.h,python.copyright
102101
graalpython/com.oracle.graal.python.cext/include/truffle.h,no.copyright
103102
graalpython/com.oracle.graal.python.cext/include/tupleobject.h,python.copyright

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

0 commit comments

Comments
 (0)