install pygimp.interp, which configures the python interpreter to point to

2005-02-20  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/Makefile.am: install pygimp.interp, which configures
        the python interpreter to point to the python we were built with. Also
        register the .py extension.
This commit is contained in:
Manish Singh 2005-02-21 21:55:14 +00:00 committed by Manish Singh
parent 398d6f18e9
commit 9cccf4168c

View file

@ -70,10 +70,25 @@ pygimp_PYTHON = \
pygimp_DATA = pygimp-logo.png
pyenvdir = $(gimpplugindir)/environ
pyinterpdir = $(gimpplugindir)/interpreters
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pyenvdir)
echo ": PYTHONPATH=$(pygimpdir)" > $(DESTDIR)$(pyenvdir)/pygimp.env
pyenvfile = $(pyenvdir)/pygimp.env
pyinterpfile = $(pyinterpdir)/pygimp.interp
install-env-file:
$(mkinstalldirs) '$(DESTDIR)$(pyenvdir)'
echo ": PYTHONPATH=$(pygimpdir)" > '$(DESTDIR)$(pyenvfile)'
install-interp-file:
$(mkinstalldirs) '$(DESTDIR)$(pyinterpdir)'
echo 'python=$(PYTHON)' > '$(DESTDIR)$(pyinterpfile)'
echo '/usr/bin/python=$(PYTHON)' >> '$(DESTDIR)$(pyinterpfile)'
echo ':Python:E::py::python:' >> '$(DESTDIR)$(pyinterpfile)'
install-data-local: install-env-file install-interp-file
uninstall-local:
rm -f '$(DESTDIR)$(pyenvfile)' '$(DESTDIR)$(pyinterpfile)'
snap:
$(MAKE) dist distdir=$(PACKAGE)-SNAP-`date +"%Y%m%d"`