mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 12:20:14 +01:00
Relocate python wrapper
This commit is contained in:
@@ -170,9 +170,9 @@ example, `$APPDIR` points to the AppImage mount point at runtime.
|
||||
Python specific environment variables, the like `PYTHONPATH`. Depending on
|
||||
your use case, this can be problematic.
|
||||
|
||||
The runtime isolation level can be changed by adding the `-s` and `-E`
|
||||
The runtime isolation level can be changed by adding the `-E`, `-s` or `-I`
|
||||
options, when invoking the runtime. For example,
|
||||
`{{ python-executable }} -sE` starts a fully isolated Python instance.
|
||||
`{{ python-executable }} -I` starts a fully isolated Python instance.
|
||||
{% endraw %}
|
||||
|
||||
|
||||
@@ -186,8 +186,8 @@ might rather refer to the initial AppImage [Packaging
|
||||
Guide][APPIMAGE_PACKAGING], and use alternative tools like
|
||||
[linuxdeploy][LINUXDEPLOY].
|
||||
|
||||
Yet, `python-appimage` can still be of use in more complex cases by extracting
|
||||
its AppImages to an AppDir, as discussed in the [Advanced
|
||||
However, `python-appimage` can still be of use in more complex cases by
|
||||
extracting its AppImages to an AppDir, as discussed in the [Advanced
|
||||
installation](index.md#advanced-installation) section. The extracted AppImages
|
||||
contain a relocatable Python runtime, that can be used as a starting base for
|
||||
building more complex AppImages.
|
||||
|
||||
@@ -195,14 +195,16 @@ freely moved around.
|
||||
Executable scripts are installed under `AppDir/opt/pythonX.Y/bin` where _X_
|
||||
and _Y_ in _pythonX.Y_ stand for the major and minor version numbers. Site
|
||||
packages are located under
|
||||
`AppDir/opt/pythonX.Y/lib/pythonX.Y/site-packages`.
|
||||
`AppDir/opt/pythonX.Y/lib/pythonX.Y/site-packages`. For convenience, `pip`
|
||||
installed applications are also mirrored under `AppDir/usr/bin`, using
|
||||
symbolic links.
|
||||
|
||||
!!! Tip
|
||||
As for Python AppImages, by default the extracted runtime is [not isolated
|
||||
from the user environment](#isolating-from-the-user-environment). This
|
||||
behaviour can be changed by editing the `AppDir/AppRun` wrapper script, and
|
||||
by adding the `-s`, `-E` or `-I` option at the very bottom, where Python is
|
||||
invoked.
|
||||
behaviour can be changed by editing the `AppDir/usr/bin/pythonX.Y` wrapper
|
||||
script, and by adding the `-s`, `-E` or `-I` option at the very bottom,
|
||||
where Python is invoked.
|
||||
|
||||
|
||||
{{ begin(".capsule") }}
|
||||
|
||||
Reference in New Issue
Block a user