You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/Embedding-Getting-Started.md
+81-36Lines changed: 81 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,45 +118,90 @@ If you prefer Gradle, here is how to set up a new project with GraalPy embedding
118
118
119
119
>**Note**: GraalPy's performance depends on the JDK you are using. For optimal performance, see the [Runtime Optimization Support](https://www.graalvm.org/latest/reference-manual/embed-languages/#runtime-optimization-support) guide.
120
120
121
-
### Adding Python Dependencies
121
+
## Adding Python Dependencies
122
122
123
123
To use third-party Python packages like NumPy or Requests in your embedded application:
124
124
125
-
1. Add the GraalPy Gradle plugin and configure dependencies in _app/build.gradle_:
126
-
127
-
```gradle
128
-
plugins {
129
-
id "java"
130
-
id "application"
131
-
id "org.graalvm.python" version "25.0.3"
132
-
}
133
-
134
-
graalPy {
135
-
packages = ["termcolor==2.2"]
136
-
}
137
-
```
138
-
139
-
2. Update your Java code to use the Python package:
Copy file name to clipboardExpand all lines: docs/user/Native-Images-with-Python.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ GraalPy supports GraalVM Native Image to generate native binaries of Java applic
4
4
5
5
## Building Executables with Python
6
6
7
-
If you started with the [Maven archetype](Embedding-Getting-Started.md#maven), the generated _pom.xml_ file already includes the necessary configuration for creating a native executable using the [Maven plugin for Native Image building](https://graalvm.github.io/native-build-tools/latest/maven-plugin.html).
7
+
If you started with the [Maven archetype](Embedding-Getting-Started.md#maven-quick-start), the generated _pom.xml_ file already includes the necessary configuration for creating a native executable using the [Maven plugin for Native Image building](https://graalvm.github.io/native-build-tools/latest/maven-plugin.html).
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python.test.integration/src/com/oracle/graal/python/test/integration/interop/JavaInteropTest.java
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
2
+
* Copyright (c) 2017, 2026, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
@@ -70,7 +70,6 @@
70
70
importorg.junit.After;
71
71
importorg.junit.Assert;
72
72
importorg.junit.Before;
73
-
importorg.junit.Ignore;
74
73
importorg.junit.Test;
75
74
importorg.junit.experimental.runners.Enclosed;
76
75
importorg.junit.runner.RunWith;
@@ -485,15 +484,14 @@ public Object execute(Value... arguments) {
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixSubprocessModuleBuiltins.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -303,7 +303,7 @@ static int forkExec(VirtualFrame frame, Object[] args, Object executableList, bo
0 commit comments