File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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()"'
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 () {
153154 cp " ${BASEDIR} /share/python-wrapper.sh" " $python "
154155 sed -i " s|[{][{]PYTHON[}][}]|$python |g" " $python "
155156 sed -i " s|[{][{]PREFIX[}][}]|$prefix |g" " $python "
157+ sed -i " s|[{][{]ENTRYPOINT[}][}]|$PYTHON_ENTRYPOINT |g" " $python "
156158 fi
157159done
158160
Original file line number Diff line number Diff line change 3434# Wrap the call to Python in order to mimic a call from the source
3535# executable ($ARGV0), but potentially located outside of the Python
3636# install ($PYTHONHOME)
37- (PYTHONHOME=" ${APPDIR} /${prefix} " exec -a " ${executable} " " $APPDIR /${prefix} /bin/${nickname} " " $@ " )
37+ (PYTHONHOME=" ${APPDIR} /${prefix} " exec -a " ${executable} " " $APPDIR /${prefix} /bin/${nickname} " {{ENTRYPOINT}} " $@ " )
3838exit " $? "
You can’t perform that action at this time.
0 commit comments