Commit 6007add3 authored by Colin Walters's avatar Colin Walters Committed by Craig Keogh

Install python2 symlink in ~/.local/bin when running on Debian

This hack allows all GNOME modules to use "python2" to find Python 2.
parent 31e9cff8
......@@ -37,3 +37,6 @@ bin_PROGRAMS = install-check
install_check_SOURCES = install-check.c
$(srcdir)/scripts/ $(DESTDIR)$(bindir)
......@@ -46,4 +46,6 @@ install: include-check install-check
ln -s $(bindir)/jhbuild "$(HOME)/bin/jhbuild" ; \
./scripts/ $(bindir)
.PHONY: all update install
bin_SCRIPTS = jhbuild
CLEANFILES = jhbuild
# This awful bit of code is intended to ensure that
# modules we build with jhbuild can always use "python2"
# to find Python 2, even if the host system (e.g. Debian)
# doesn't have such a symbolic link.
# See:
set -e
test -n "$bindir" || (echo "usage: $0 bindir"; exit 1)
py2=$(which python2 2>/dev/null || true)
if test -z "$py2"; then
py=$(which python 2>/dev/null);
ln -s "$(which python)" ${bindir}/python2;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment