diff options
author | Brandon Invergo <brandon@invergo.net> | 2013-05-19 15:28:04 +0200 |
---|---|---|
committer | Brandon Invergo <brandon@invergo.net> | 2013-05-19 15:28:04 +0200 |
commit | 297a262c37a27e4cb08e7393ed7dbc6dca6aaa07 (patch) | |
tree | b0c97dbe160052da2676357ec0463c80f9ede109 /Makefile.in | |
parent | f16f93be3fd8d6e09074bbf8a3f38ac10dad23d4 (diff) | |
download | mediagoblin-297a262c37a27e4cb08e7393ed7dbc6dca6aaa07.tar.lz mediagoblin-297a262c37a27e4cb08e7393ed7dbc6dca6aaa07.tar.xz mediagoblin-297a262c37a27e4cb08e7393ed7dbc6dca6aaa07.zip |
fix virtualenv python interpreter and fix update target
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/Makefile.in b/Makefile.in index af3a6ae3..bfcc257f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -55,14 +55,18 @@ all: install install-pdf pdf install-dvi dvi install-ps ps clean dist check \ installdirs postgresql update -# Since installing to a virtualenv is all the rage these days, support it here. If the VIRTUALENV -# variable is set to anything other than "no", set up a new virtualenv and install there, otherwise -# install as usual from setup.py +# Since installing to a virtualenv is all the rage these days, support +# it here. If the VIRTUALENV variable is set to anything other than +# "no", set up a new virtualenv and install there, otherwise install +# as usual from setup.py install: installdirs $(NORMAL_INSTALL) ifneq ($(VIRTUALENV),no) - $(VIRTUALENV) $(VIRTUALENV_FLAGS) --system-site-packages $(DESTDIR)$(prefix) || $(VIRTUALENV) $(DESTDIR)$(prefix) - $(DESTDIR)$(prefix)/bin/python $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix) + $(VIRTUALENV) $(VIRTUALENV_FLAGS) --python=$(PYTHON) \ + --system-site-packages $(DESTDIR)$(prefix) || \ + $(VIRTUALENV) $(DESTDIR)$(prefix) + $(DESTDIR)$(prefix)/bin/python $(srcdir)/setup.py install \ + --prefix=$(DESTDIR)$(prefix) else $(PYTHON) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix) endif @@ -72,8 +76,11 @@ endif develop: installdirs $(NORMAL_INSTALL) ifneq ($(VIRTUALENV),no) - $(VIRTUALENV) $(VIRTUALENV_FLAGS) --system-site-packages $(DESTDIR)$(prefix) || $(VIRTUALENV) $(DESTDIR)$(prefix) - $(DESTDIR)$(prefix)/bin/python $(srcdir)/setup.py develop --prefix=$(DESTDIR)$(prefix) + $(VIRTUALENV) $(VIRTUALENV_FLAGS) --python=$(PYTHON) \ + --system-site-packages $(DESTDIR)$(prefix) || \ + $(VIRTUALENV) $(DESTDIR)$(prefix) + $(DESTDIR)$(prefix)/bin/python $(srcdir)/setup.py develop \ + --prefix=$(DESTDIR)$(prefix) else $(PYTHON) $(srcdir)/setup.py develop --prefix=$(DESTDIR)$(prefix) endif @@ -85,9 +92,9 @@ endif # should remove a basic package installed via setup.py, but please double- and # triple-check it so that you don't remove something you shouldn't! # Be sure to remove any extra files you install, such as binaries or documentation! -uninstall: - rm -rvf $(pkgpythondir) - rm -v $(pythondir)/$(PACKAGE_DISTNAME)-*.egg-info +# uninstall: +# rm -rvf $(pkgpythondir) +# rm -v $(pythondir)/$(PACKAGE_DISTNAME)-*.egg-info # Just use the usual setup.py clean command @@ -126,9 +133,9 @@ postgresql: update: ifneq ($(VIRTUALENV),no) - $(prefix)/bin/python $(prefix)/setup.py develop --prefix=$(prefix) --upgrade + $(prefix)/bin/python $(srcdir)/setup.py develop --prefix=$(prefix) --upgrade else - $(PYTHON) $(prefix)/setup.py develop --prefix=$(DESTDIR)$(prefix) --upgrade + $(PYTHON) $(srcdir)/setup.py develop --prefix=$(prefix) --upgrade endif $(prefix)/bin/gmg dbupdate |