vici: Make installation of Ruby Gem and Python Egg optional
Installing them might not work well when building distro packages (e.g. with DESTDIR installs). It might be easier to install them later with a script in the distro package. When building from source on the local system it could still be useful to install the packages directly, which can be enabled with separate configure options. The main problem with DESTDIR installations of the Python Egg is that easy_install creates or modifies a file called easy-install.pth in the installation directory. So it's not actually possible to simply copy the results in DESTDIR over to the actual system as that file would have to be merged with any existing one. Fixes #914.
This commit is contained in:
@@ -24,9 +24,11 @@ clean-local:
|
||||
(cd $(srcdir); [ ! -f setup.py ] || $(PYTHON) setup.py clean -a)
|
||||
rm -rf $(srcdir)/setup.py $(srcdir)/vici.egg-info $(builddir)/dist
|
||||
|
||||
if PYTHON_EGGS_INSTALL
|
||||
install-exec-local: dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
|
||||
$(EASY_INSTALL) $(PYTHONEGGINSTALLDIR) \
|
||||
dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
|
||||
endif
|
||||
|
||||
if USE_PY_TEST
|
||||
TESTS = $(PY_TEST)
|
||||
|
||||
Reference in New Issue
Block a user