File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66./appimage/build-python.sh python2
77./appimage/build-python.sh python3
88./appimage/build-python.sh scipy
9+ ./appimage/build-python.sh xonsh
910
1011python3 -m tests
Original file line number Diff line number Diff line change 1+ export PYTHON_VERSION=" 3.7.3"
2+ export PIP_REQUIREMENTS=" xonsh prompt_toolkit gnureadline Pygments"
3+ export PYTHON_ENTRYPOINT=' "-u" "-c" "from xonsh.main import main; main()"'
4+ export LD_LIBRARY_PATH=" AppDir/usr/python/lib/python3.7/site-packages/.libsgnureadline:${LD_LIBRARY_PATH} "
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ script=$(readlink -f $0)
2020exe_name=" $( basename ${APPIMAGE:- $script } ) "
2121BASEDIR=" ${APPDIR:- $(readlink -m $(dirname $script ))} "
2222
23+ PYTHON_ENTRYPOINT=" ${PYTHON_ENTRYPOINT:- } "
2324
2425# Parse the CLI
2526show_usage () {
154155 cp " ${BASEDIR} /share/python-wrapper.sh" " $python "
155156 sed -i " s|[{][{]PYTHON[}][}]|$python |g" " $python "
156157 sed -i " s|[{][{]PREFIX[}][}]|$prefix |g" " $python "
158+ sed -i " s|[{][{]ENTRYPOINT[}][}]|$PYTHON_ENTRYPOINT |g" " $python "
157159 fi
158160done
159161
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ SCRIPT=` realpath $0 `
4+ SCRIPTPATH=` dirname $SCRIPT `
5+ APPDIR=" ${APPDIR:- $SCRIPTPATH / ../ ..} "
6+
37# Configure the environment
48prefix=" {{PREFIX}}"
59export TCL_LIBRARY=" ${APPDIR} /${prefix} /share/tcltk/tcl" *
3438# Wrap the call to Python in order to mimic a call from the source
3539# executable ($ARGV0), but potentially located outside of the Python
3640# install ($PYTHONHOME)
37- (PYTHONHOME=" ${APPDIR} /${prefix} " exec -a " ${executable} " " $APPDIR /${prefix} /bin/${nickname} " " $@ " )
41+ (PYTHONHOME=" ${APPDIR} /${prefix} " exec -a " ${executable} " " $APPDIR /${prefix} /bin/${nickname} " {{ENTRYPOINT}} " $@ " )
3842exit " $? "
You can’t perform that action at this time.
0 commit comments