mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
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:
parent
398d6f18e9
commit
9cccf4168c
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue