vici: Add python egg setuptools building and installation using easy_install
[strongswan.git] / src / libcharon / plugins / vici / python / Makefile.am
1 EXTRA_DIST = LICENSE MANIFEST.in \
2         setup.py.in \
3         vici/__init__.py \
4         vici/exception.py \
5         vici/protocol.py \
6         vici/session.py
7
8 setup.py: $(srcdir)/setup.py.in
9         $(AM_V_GEN) sed \
10         -e "s:@EGG_VERSION@:$(PACKAGE_VERSION):" \
11         $(srcdir)/setup.py.in > $@
12
13 all-local: dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
14
15 dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg: $(EXTRA_DIST) setup.py
16         (cd $(srcdir); $(PYTHON) setup.py bdist_egg \
17                 -b $(shell readlink -f $(builddir))/build \
18                 -d $(shell readlink -f $(builddir))/dist)
19
20 clean-local: setup.py
21         $(PYTHON) setup.py clean -a
22         rm -rf vici.egg-info dist setup.py
23
24 install-exec-local: dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg
25         $(EASY_INSTALL) $(PYTHONEGGINSTALLDIR) \
26                 dist/vici-$(PACKAGE_VERSION)-py$(PYTHON_VERSION).egg