Codebase list python-libtrace / 8220c99
No longer build a Python 2 package Iain R. Learmonth 5 years ago
2 changed file(s) with 1 addition(s) and 34 deletion(s). Raw diff Collapse all Expand all
1313 Vcs-Git: https://anonscm.debian.org/git/pkg-netmeasure/python-libtrace.git
1414 Homepage: https://www.cs.auckland.ac.nz/~nevil/python-libtrace/
1515
16 Package: python-libtrace
17 Architecture: any
18 Depends: ${python:Depends},
19 ${shlibs:Depends},
20 ${misc:Depends}
21 Description: Python 2 bindings for the libtrace API
22 python-libtrace (plt) is a Python module that allows you to work with
23 packet trace data using WAND's libtrace library.
24 .
25 It's intended to provide a clean, simple, Python-like way of working
26 with libtrace, rather than a simple translation of the libtrace calls
27 from C into Python. For example for the protocol header decodes, the
28 field names from the RFCs are used rather than libtrace's names.
29 .
30 This package contains the Python 2 bindings.
31
3216 Package: python3-libtrace
3317 Architecture: any
3418 Depends: ${python3:Depends},
00 #!/usr/bin/make -f
11
2 PYVERS=$(shell pyversions -sv)
32 PY3VERS=$(shell py3versions -sv)
43
54 %:
6 dh $@ --with python2,python3
5 dh $@ --with python3
76
87 override_dh_auto_build:
9 set -e && for pyvers in $(PYVERS); do \
10 ( cd lib/ipp; python$$pyvers ipp-setup.py build ); \
11 ( cd lib/plt; python$$pyvers plt-setup.py build ); \
12 ( cd lib/natkit; python$$pyvers natkit-setup.py build ); \
13 ( cd lib/pldns; python$$pyvers pldns-setup.py build ); \
14 done
158 set -e && for pyvers in $(PY3VERS); do \
169 ( cd lib/ipp; python$$pyvers ipp-setup.py build ); \
1710 ( cd lib/plt; python$$pyvers plt-setup.py build ); \
2013 done
2114
2215 override_dh_auto_install:
23 set -e && for pyvers in $(PYVERS); do \
24 ( cd lib/ipp ; python$$pyvers ipp-setup.py install --install-layout=deb \
25 --root $(CURDIR)/debian/python-libtrace ) ; \
26 ( cd lib/plt ; python$$pyvers plt-setup.py install --install-layout=deb \
27 --root $(CURDIR)/debian/python-libtrace ) ; \
28 ( cd lib/natkit ; python$$pyvers natkit-setup.py install --install-layout=deb \
29 --root $(CURDIR)/debian/python-libtrace ) ; \
30 ( cd lib/pldns ; python$$pyvers pldns-setup.py install --install-layout=deb \
31 --root $(CURDIR)/debian/python-libtrace ) ; \
32 done
3316 set -e && for pyvers in $(PY3VERS); do \
3417 ( cd lib/ipp ; python$$pyvers ipp-setup.py install --install-layout=deb \
3518 --root $(CURDIR)/debian/python3-libtrace ) ; \