Strip the install and package dependencies · niess/linuxdeploy-plugin-python@ad0c8df · GitHub
Skip to content

Commit ad0c8df

Browse files
committed
Strip the install and package dependencies
1 parent 380cb68 commit ad0c8df

5 files changed

Lines changed: 38 additions & 23 deletions

File tree

.travis/script.sh

Lines changed: 1 addition & 2 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ are located on the [wiki][WIKI_DEVS].
1717
Ready to use [AppImage][APPIMAGE] distributions of [Python][PYTHON] are provided
1818
[below](##Downloads) or in the [release][RELEASE] area. A one liner example is:
1919
```
20-
wget -cq https://github.com/niess/linuxdeploy-plugin-python/releases/download/continuous/python3-$(arch).AppImage && chmod u+x python3-$(arch).AppImage && ./python3-$(arch).AppImage
20+
wget -cq https://github.com/niess/linuxdeploy-plugin-python/releases/download/continuous/python3-x86_64.AppImage && chmod u+x python3-x86_64.AppImage && ./python3-x86_64.AppImage
2121
```
2222
which will install and run a [Python][PYTHON] instance. See the instructions on
2323
the [wiki][WIKI_USERS] for more detailed usage.

linuxdeploy-plugin-python.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ fi
134134

135135
# Prune the install
136136
cd "$APPDIR/usr"
137-
rm -rf "bin/python"*"-config" "bin/idle"* "include" "lib/pkgconfig" "share/doc" "share/man"
137+
rm -rf "bin/python"*"-config" "bin/idle"* "include" "lib/pkgconfig" \
138+
"share/doc" "share/man" "lib/libpython"*".a" "lib/python"*"/test" \
139+
"lib/python"*"/config-"*"-x86_64-linux-gnu"
140+
138141

139142

140143
# Wrap the Python executables

share/python-wrapper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}"
4+
35
# Resolve symlinks within the image
46
nickname="{{PYTHON}}"
57
executable="${APPDIR}/usr/bin/${nickname}"

tests/test_plugin.py

Lines changed: 30 additions & 19 deletions

0 commit comments

Comments
 (0)