mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 06:45:17 +00:00
debian: Fix build of python json C extension.
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
committed by
Ilya Maximets
parent
671f93fe42
commit
6ad3be9749
3
debian/control
vendored
3
debian/control
vendored
@@ -278,11 +278,12 @@ Description: Open vSwitch VTEP utilities
|
||||
VTEP-configured database and a VTEP emulator.
|
||||
|
||||
Package: python3-openvswitch
|
||||
Architecture: all
|
||||
Architecture: linux-any
|
||||
Section: python
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${python3:Depends},
|
||||
${shlibs:Depends},
|
||||
Description: Python 3 bindings for Open vSwitch
|
||||
Open vSwitch is a production quality, multilayer, software-based,
|
||||
Ethernet virtual switch. It is designed to enable massive network
|
||||
|
13
debian/rules
vendored
13
debian/rules
vendored
@@ -85,10 +85,15 @@ override_dh_auto_install:
|
||||
|
||||
execute_after_dh_install:
|
||||
set -e && for pyvers in $(PYTHON3S); do \
|
||||
cd python && python$$pyvers setup.py install --install-layout=deb \
|
||||
--root $(CURDIR)/debian/python3-openvswitch; cd ..; \
|
||||
cd python && \
|
||||
enable_shared=no \
|
||||
CFLAGS=-I$(CURDIR)/debian/tmp/usr/include \
|
||||
LDFLAGS=$(CURDIR)/debian/tmp/usr/lib/libopenvswitch.a \
|
||||
python$$pyvers setup.py install --install-layout=deb \
|
||||
--root $(CURDIR)/debian/python3-openvswitch; \
|
||||
cd ..; \
|
||||
mkdir -p $(CURDIR)/debian/openvswitch-test/usr/lib/python$$pyvers/dist-packages/ovstest; \
|
||||
install -v -D -m 644 python/ovstest/*.py \
|
||||
install -v -D python/ovstest/*.py \
|
||||
$(CURDIR)/debian/openvswitch-test/usr/lib/python$$pyvers/dist-packages/ovstest; \
|
||||
done
|
||||
|
||||
@@ -108,7 +113,7 @@ override_dh_strip:
|
||||
dh_strip --dbgsym-migration='openvswitch-dbg (<< 2.17~)'
|
||||
|
||||
override_dh_python3:
|
||||
dh_python3 --shebang=/usr/bin/python3
|
||||
DEB_HOST_ARCH=$(DEB_HOST_ARCH) dh_python3 --shebang=/usr/bin/python3
|
||||
|
||||
# Helper target for creating snapshots from upstream git
|
||||
DATE=$(shell date +%Y%m%d)
|
||||
|
Reference in New Issue
Block a user