Skip to content

Commit dd37f74

Browse files
committed
[GR-21590] Update imports.
PullRequest: graalpython/3808
2 parents 70da40f + 1e11989 commit dd37f74

File tree

10 files changed

+239
-230
lines changed

10 files changed

+239
-230
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "a74e2e4ae250150f0f974c20c80ac212a9116ea1" }
1+
{ "overlay": "86a4d3d85b6a6a4778257dc9746356a5a5d36608" }

graalpython/com.oracle.graal.python.cext/include/cpython/tupleobject.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ PyAPI_FUNC(PyObject **) PyTruffleTuple_GetItems(PyObject *op);
4141

4242
// GraalPy change: Export PyTuple_SET_ITEM as regular API function to use in PyO3 and others
4343
PyAPI_FUNC(void) PyTuple_SET_ITEM(PyObject*, Py_ssize_t, PyObject*);
44+
45+
/* Inline function to be used in the PyTuple_SET_ITEM macro. */
46+
static inline void graalpy_tuple_set_item(PyObject *op, Py_ssize_t index, PyObject *value) {
47+
PyTruffleTuple_GetItems(op)[index] = value;
48+
}
4449
#define PyTuple_SET_ITEM(op, index, value) \
45-
PyTuple_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))
50+
graalpy_tuple_set_item(_PyObject_CAST(op), (index), _PyObject_CAST(value))
4651

4752
PyAPI_FUNC(void) _PyTuple_DebugMallocStats(FILE *out);

graalpython/com.oracle.graal.python.cext/src/tupleobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,5 +1444,5 @@ _PyTuple_GET_ITEM(PyObject* a, Py_ssize_t b) {
14441444
#undef PyTuple_SET_ITEM
14451445
// Export PyTuple_SET_ITEM as regular API function to use in PyO3 and others
14461446
void PyTuple_SET_ITEM(PyObject* op, Py_ssize_t index, PyObject* value) {
1447-
PyTruffleTuple_GetItems(op)[index] = value;
1447+
graalpy_tuple_set_item(op, index, value);
14481448
}

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_tarfile.txt

Lines changed: 221 additions & 220 deletions
Large diffs are not rendered by default.

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_threading.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ test.test_threading.SemaphoreTests.test_try_acquire_contended @ darwin-arm64,dar
126126
test.test_threading.SemaphoreTests.test_with @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
127127
# Can transiently fail with java.lang.AssertionError: The TruffleContext must be entered
128128
!test.test_threading.ThreadJoinOnShutdown.test_1_join_on_shutdown @ darwin-arm64,linux-aarch64,linux-x86_64
129-
test.test_threading.ThreadJoinOnShutdown.test_4_daemon_threads @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64
129+
test.test_threading.ThreadJoinOnShutdown.test_4_daemon_threads @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
130130
test.test_threading.ThreadTests.test_BoundedSemaphore_limit @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
131131
test.test_threading.ThreadTests.test_args_argument @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64
132132
test.test_threading.ThreadTests.test_boolean_target @ darwin-arm64,darwin-x86_64,linux-aarch64,linux-x86_64,win32-AMD64

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,8 @@ def update_import_cmd(args):
18641864
join(overlaydir, "python", "graal", "ci"),
18651865
dirs_exist_ok=True)
18661866

1867-
run_mx(['--dynamicimports', '/graal-enterprise', 'checkout-downstream', 'compiler', 'graal-enterprise'])
1867+
if not args.no_pull:
1868+
run_mx(['--dynamicimports', '/graal-enterprise', 'checkout-downstream', 'compiler', 'graal-enterprise'])
18681869
enterprisedir = join(SUITE.dir, "..", "graal-enterprise")
18691870
shutil.copy(
18701871
join(enterprisedir, "common.json"),

mx.graalpython/mx_graalpython_python_benchmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
627627
mx.run(["git", "config", "user.email", "[email protected]"], cwd=npdir)
628628
mx.run(["git", "config", "user.name", "YourName"], cwd=npdir)
629629
mx.run(["git", "commit", "--allow-empty", "-m", "init"], cwd=npdir)
630-
mx.run(["git", "branch", self.VERSION], cwd=npdir)
630+
mx.run(["git", "branch", f"v{self.VERSION}"], cwd=npdir)
631631
mx.run(["git", "branch", "main"], cwd=npdir, nonZeroIsFatal=False)
632632
mx.run(["git", "branch", "master"], cwd=npdir, nonZeroIsFatal=False)
633633

mx.graalpython/pyrightconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"extraPaths": [
3-
"../../mx/src/"
3+
"../../mx/src/",
4+
"../../graal/truffle/mx.truffle/",
5+
"../../graal/sdk/mx.sdk/",
46
]
57
}

mx.graalpython/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
},
5454
{
5555
"name": "tools",
56-
"version": "69f10d3d658a6aeca3d5ce59c64af6a18336f14c",
56+
"version": "64d1fc89abceee55319a919d523830657e7bc280",
5757
"subdir": True,
5858
"urls": [
5959
{"url": "https://github.com/oracle/graal", "kind": "git"},
6060
],
6161
},
6262
{
6363
"name": "regex",
64-
"version": "69f10d3d658a6aeca3d5ce59c64af6a18336f14c",
64+
"version": "64d1fc89abceee55319a919d523830657e7bc280",
6565
"subdir": True,
6666
"urls": [
6767
{"url": "https://github.com/oracle/graal", "kind": "git"},

scripts/wheelbuilder/linux/shapely.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
# SOFTWARE.
3939

4040
if [ -n "$GITHUB_RUN_ID" ]; then
41-
dnf install -y libgeos-devel
41+
dnf install -y geos-devel
4242
fi

0 commit comments

Comments
 (0)