mirror of https://gerrit.osmocom.org/libosmocore
debian, utils: switch to python 3
Make build and external tests work with python3, so we can drop the python2 dependency. This should be merged shortly after osmo-python-tests was migrated to python3, and the jenkins build slaves were (automatically) updated to have the new osmo-python-tests installed. Related: OS#2819 Depends: osmo-python-tests I3ffc3519bf6c22536a49dad7a966188ddad351a7 Change-Id: I84ef43f700e125c7a65f92347f12844e07e65655
This commit is contained in:
parent
87b51439c1
commit
a47d37c946
|
@ -16,7 +16,7 @@ Build-Depends: debhelper (>= 9),
|
||||||
pkg-config,
|
pkg-config,
|
||||||
libtalloc-dev,
|
libtalloc-dev,
|
||||||
libsctp-dev,
|
libsctp-dev,
|
||||||
python (>= 2.7.6)
|
python3
|
||||||
Standards-Version: 3.9.8
|
Standards-Version: 3.9.8
|
||||||
Vcs-Git: git://git.osmocom.org/libosmocore.git
|
Vcs-Git: git://git.osmocom.org/libosmocore.git
|
||||||
Vcs-Browser: http://git.osmocom.org/libosmocore/
|
Vcs-Browser: http://git.osmocom.org/libosmocore/
|
||||||
|
|
|
@ -179,7 +179,7 @@ osmocom/core/crc%gen.h: osmocom/core/crcXXgen.h.tpl
|
||||||
$(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
|
$(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
|
||||||
|
|
||||||
osmocom/gsm/gsm0503.h: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
osmocom/gsm/gsm0503.h: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
||||||
$(AM_V_GEN)python $(top_srcdir)/utils/conv_gen.py gen_header gsm \
|
$(AM_V_GEN)python3 $(top_srcdir)/utils/conv_gen.py gen_header gsm \
|
||||||
--target-path $(builddir)/osmocom/gsm
|
--target-path $(builddir)/osmocom/gsm
|
||||||
|
|
||||||
CLEANFILES = osmocom/gsm/gsm0503.h
|
CLEANFILES = osmocom/gsm/gsm0503.h
|
||||||
|
|
|
@ -49,6 +49,6 @@ EXTRA_DIST = libosmogsm.map
|
||||||
|
|
||||||
# Convolutional codes generation
|
# Convolutional codes generation
|
||||||
gsm0503_conv.c: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
gsm0503_conv.c: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
||||||
$(AM_V_GEN)python $(top_srcdir)/utils/conv_gen.py gen_codes gsm
|
$(AM_V_GEN)python3 $(top_srcdir)/utils/conv_gen.py gen_codes gsm
|
||||||
|
|
||||||
CLEANFILES = gsm0503_conv.c
|
CLEANFILES = gsm0503_conv.c
|
||||||
|
|
|
@ -362,7 +362,7 @@ $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
conv/gsm0503_test_vectors.c: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
conv/gsm0503_test_vectors.c: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
||||||
$(AM_V_GEN)python $(top_srcdir)/utils/conv_gen.py gen_vectors gsm \
|
$(AM_V_GEN)python3 $(top_srcdir)/utils/conv_gen.py gen_vectors gsm \
|
||||||
--target-path $(builddir)/conv
|
--target-path $(builddir)/conv
|
||||||
|
|
||||||
if ENABLE_EXT_TESTS
|
if ENABLE_EXT_TESTS
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from conv_gen import ConvolutionalCode
|
from conv_gen import ConvolutionalCode
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
mod_license = """
|
mod_license = """
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue