papi: remove python2 vpp-api-python.deb 55/30555/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 30 Dec 2020 00:41:15 +0000 (00:41 +0000)
committerOle Tr�an <otroan@employees.org>
Tue, 9 Feb 2021 18:29:33 +0000 (18:29 +0000)
Type: fix

Change-Id: I4901f7eb9d739afd4d45a25306434e9d122a4068
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/pkg/CMakeLists.txt
src/pkg/debian/control.in
src/pkg/debian/rules.in
src/pkg/debian/vpp.postrm

index d5cc207..e466fe8 100644 (file)
@@ -35,13 +35,8 @@ foreach(l ${os_release})
   set(OS_${_name} ${_value})
 endforeach()
 
-if (OS_ID STREQUAL "ubuntu" AND OS_VERSION_ID VERSION_LESS 20.04)
-  set(VPP_DEB_BUILD_DEPENDS "python-all, python3-all, python3-setuptools")
-  set(VPP_DEB_WITH_PYTHON2 "yes")
-else()
-  set(VPP_DEB_BUILD_DEPENDS "python3-all, python3-setuptools")
-  set(VPP_DEB_WITH_PYTHON2 "no")
-endif()
+set(VPP_DEB_BUILD_DEPENDS "python3-all, python3-setuptools")
+set(VPP_DEB_WITH_PYTHON2 "no")
 
 foreach(f rules changelog control)
   configure_file(
index ef66682..006b01c 100644 (file)
@@ -67,21 +67,10 @@ Description: Vector Packet Processing--runtime dpdk plugin
  This package contains the VPP dpdk plugin
  .
 
-Package: vpp-api-python
-Architecture: any
-Depends: vpp (= ${source:Version}),
-         ${python:Depends},
-        ${misc:Depends}
-Description: VPP Python API bindings
- This package contains VPP python api bindings
- .
-
 Package: python3-vpp-api
 Architecture: any
 Depends: vpp (= ${source:Version}),
          python3-cffi,
-         python3-ply,
-         python3-pycparser,
          ${python3:Depends},
         ${misc:Depends}
 Description: VPP Python3 API bindings
index f09db38..3249220 100755 (executable)
@@ -12,14 +12,7 @@ export PYBUILD_DIR = @CMAKE_SOURCE_DIR@/vpp-api/python
 export PYBUILD_DESTDIR_python3=debian/python3-vpp-api/
 export PYBUILD_DISABLE_python3=test
 export PYBUILD_SYSTEM=distutils
-ifeq (@VPP_DEB_WITH_PYTHON2@,yes)
-export PYBUILD_DESTDIR_python2=debian/vpp-api-python/
-export PYBUILD_DISABLE_python2=test
-buildvers := $(shell pyversions -sv)
-DH_WITH = systemd,python2,python3
-else
 DH_WITH = systemd,python3
-endif
 
 build3vers := $(shell py3versions -sv)
 
index 24b4842..4ef1a59 100644 (file)
@@ -13,9 +13,9 @@ for d in $pci_dirs; do
     done
 done
 if [ -n "${removed}" ]; then
-    echo "There are changes in PCI drivers, rescaning"
+    echo "There are changes in PCI drivers, rescanning"
     echo 1 > /sys/bus/pci/rescan
 else
-    echo "There weren't PCI devices binded"
+    echo "There weren't PCI devices bound"
 fi