aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-02-25 16:20:10 +0100
committerMartin Willi <martin@revosec.ch>2015-03-18 13:59:14 +0100
commit358793389a98d29887a6bb72f9b48166f6dcb197 (patch)
tree7720ca0a66afc5c9eeb74c7a78da2554846e1f6a /src
parent1e2ec9f96a010e0e74d88ace7859ff5289736e49 (diff)
downloadstrongswan-358793389a98d29887a6bb72f9b48166f6dcb197.tar.bz2
strongswan-358793389a98d29887a6bb72f9b48166f6dcb197.tar.xz
vici: Add python egg setuptools building and installation using easy_install
An uninstall target is currently not supported, as there is no trivial way with either plain setuptools or with easy_install. pip would probably be the best choice, but we currently don't depend on it.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/vici/python/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libcharon/plugins/vici/python/Makefile.am b/src/libcharon/plugins/vici/python/Makefile.am
index 1c77ee5c7..94ecb1f48 100644
--- a/src/libcharon/plugins/vici/python/Makefile.am
+++ b/src/libcharon/plugins/vici/python/Makefile.am
@@ -9,3 +9,18 @@ setup.py: $(srcdir)/setup.py.in
$(AM_V_GEN) sed \
-e "s:@EGG_VERSION@:$(PACKAGE_VERSION):" \
$(srcdir)/setup.py.in > $@
+
+all-local: dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
+
+dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg: $(EXTRA_DIST) setup.py
+ (cd $(srcdir); $(PYTHON) setup.py bdist_egg \
+ -b $(shell readlink -f $(builddir))/build \
+ -d $(shell readlink -f $(builddir))/dist)
+
+clean-local: setup.py
+ $(PYTHON) setup.py clean -a
+ rm -rf vici.egg-info dist setup.py
+
+install-exec-local: dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
+ $(EASY_INSTALL) $(PYTHONEGGINSTALLDIR) \
+ dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg