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: README.md
+12-83Lines changed: 12 additions & 83 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ GraalPy is ready for production running pure Python code and has experimental su
16
16
**Low-overhead integration with Java and other languages**
17
17
18
18
* Use [Python in Java](docs/user/Interoperability.md) applications on GraalVM JDK, Oracle JDK, or OpenJDK
19
-
* Use JVM tools like [Maven](docs/user/README.md), JFR, or [GraalVM Native Image](docs/user/Native-Images-with-Python.md)
19
+
* Use JVM tools like [Maven](docs/user/Embedding-Build-Tools.md), JFR, or [GraalVM Native Image](docs/user/Native-Images-with-Python.md)
20
20
* Manage Python libraries' system access thanks to GraalPy's [Java-based emulation of Python OS APIs](docs/user/Embedding-Permissions.md)
21
21
22
22
**Compatible with the Python ecosystem**
@@ -84,65 +84,13 @@ This means that build tools have to be available and installation will take long
84
84
We provide [Github actions](scripts/wheelbuilder) to help you build binary packages with the correct dependencies.
85
85
Thanks to our integration with GraalVM Native Image, we can deploy Python applications as [standalone binary](docs/user/Python-Standalone-Applications.md), all dependencies included.
86
86
87
-
* Linux
87
+
**Quick Installation:**
88
88
89
-
The easiest way to install GraalPy on Linux is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
90
-
To install version 25.0.2 using Pyenv, run the following commands:
91
-
```bash
92
-
pyenv install graalpy-25.0.2
93
-
```
94
-
```bash
95
-
pyenv shell graalpy-25.0.2
96
-
```
97
-
> NOTE: There will be a delay between GraalPy release and its availability on Pyenv. Make sure to update Pyenv.
98
-
99
-
Alternatively, you can download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases).
100
-
101
-
1. Find the download that matches the pattern _graalpy-XX.Y.Z-linux-amd64.tar.gz_ or _graalpy-XX.Y.Z-linux-aarch64.tar.gz_ (depending on your platform) and download.
102
-
2. Uncompress the file and update your `PATH` environment variable to include the _graalpy-XX.Y.Z-linux-amd64/bin_ (or _graalpy-XX.Y.Z-linux-aarch64/bin_) directory.
103
-
104
-
* macOS
105
-
106
-
The easiest way to install GraalPy on macOS is to use [Pyenv](https://github.com/pyenv/pyenv) (the Python version manager).
107
-
To install version 25.0.2 using Pyenv, run the following commands:
108
-
```bash
109
-
pyenv install graalpy-25.0.2
110
-
```
111
-
```bash
112
-
pyenv shell graalpy-25.0.2
113
-
```
114
-
> NOTE: There will be a delay between GraalPy release and its availability on Pyenv. Make sure to update Pyenv.
115
-
116
-
Alternatively, you can download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases).
117
-
118
-
1. Find the download that matches the pattern _graalpy-XX.Y.Z-macos-aarch64.tar.gz_ and download.
-**Manual**: Download from [GitHub releases](https://github.com/oracle/graalpython/releases)
143
92
144
-
1. Find the download that matches the pattern _graalpy-XX.Y.Z-windows-amd64.tar.gz_ and download.
145
-
2. Uncompress the file and update your `PATH` variable to include to the _graalpy-XX.Y.Z-windows-amd64/bin_ directory.
93
+
**See the [complete installation guide](docs/user/Standalone-Getting-Started.md) for detailed instructions.**
146
94
147
95
</details>
148
96
<details>
@@ -161,36 +109,17 @@ The _setup-python_ action supports GraalPy:
161
109
<details>
162
110
<summary><strong><a name="start-migrating-jython-scripts-to-graalpy"></a>Migrating Jython Scripts to GraalPy</strong></summary>
163
111
164
-
Most existing Jython code that uses Java integration will be based on a stable Jython release—however, these are only available in Python 2.x versions.
112
+
Most existing Jython code that uses Java integration will be based on a stable Jython release—however, these are only available in Python 2.x versions.
165
113
To migrate your code from Python 2 to Python 3, follow [the official guide from the Python community](https://docs.python.org/3/howto/pyporting.html).
166
114
GraalPy provides a [special mode](docs/user/Python-on-JVM.md) to facilitate migration.
167
-
To run Jython scripts, you need to use a GraalPy distribution running on the JVM so you can access Java classes from Python scripts.
168
-
169
-
* Linux
170
-
171
-
1. Find and download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases) that matches the pattern _graalpy-jvm-XX.Y.Z-linux-amd64.tar.gz_ or _graalpy-jvm-XX.Y.Z-linux-aarch64.tar.gz_ (depending on your platform) and download.
172
-
2. Uncompress the file and update your `PATH` environment variable to include the _graalpy-jvm-XX.Y.Z-linux-amd64/bin_ (or _graalpy-jvm-XX.Y.Z-linux-aarch64/bin_) directory.
173
-
3. Run your scripts with `graalpy --python.EmulateJython`.
174
-
175
-
* macOS
176
115
177
-
1. Find and download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases) that matches the pattern _graalpy-jvm-XX.Y.Z-macos-aarch64.tar.gz_ and download.
3. Uncompress the file and update your `PATH` environment variable to include to the _graalpy-jvm-XX.Y.Z-macos-aarch64/bin_ directory.
187
-
4. Run your scripts with `graalpy --python.EmulateJython`.
116
+
**Quick Setup:**
188
117
189
-
* Windows
118
+
1. Download a GraalPy JVM distribution: `graalpy-jvm-XX.Y.Z-<platform>.tar.gz`
119
+
2. Extract and add to PATH
120
+
3. Run with: `graalpy --python.EmulateJython`
190
121
191
-
1. Find and download a compressed GraalPy installation file from [GitHub releases](https://github.com/oracle/graalpython/releases) that matches the pattern _graalpy-jvm-XX.Y.Z-windows-amd64.tar.gz_.
192
-
2. Uncompress the file and update your `PATH` variable to include to the _graalpy-jvm-XX.Y.Z-windows-amd64/bin_ directory.
193
-
3. Run your scripts with `graalpy --python.EmulateJython`.
122
+
**See the [complete migration guide](docs/user/Python-on-JVM.md) for detailed instructions.**
0 commit comments