package/python-dpkt: remove Python2 only dependency
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 16 Apr 2020 05:27:54 +0000 (07:27 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 17 Apr 2020 20:08:15 +0000 (22:08 +0200)
python-dpkt supports both Python flavors.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/python-dpkt/Config.in

index d8e3388d7e1c9bc0c777e7ed73c40abefd6df084..9bd7a98d26b0303006479c049baf42000dab2ec6 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_PYTHON_DPKT
        bool "python-dpkt"
-       depends on BR2_PACKAGE_PYTHON
-       select BR2_PACKAGE_PYTHON_ZLIB
+       select BR2_PACKAGE_PYTHON_ZLIB if BR2_PACKAGE_PYTHON # runtime
+       select BR2_PACKAGE_PYTHON3_ZLIB if BR2_PACKAGE_PYTHON3 # runtime
        help
          Fast, simple packet creation / parsing, with definitions
          for the basic TCP/IP protocols.