summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/python')
-rw-r--r--src/vpp-api/python/setup.py7
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_serializer.py13
2 files changed, 2 insertions, 18 deletions
diff --git a/src/vpp-api/python/setup.py b/src/vpp-api/python/setup.py
index a14e4e4d113..05c26bb05e5 100644
--- a/src/vpp-api/python/setup.py
+++ b/src/vpp-api/python/setup.py
@@ -13,19 +13,12 @@
# limitations under the License.
import sys
-stdlib_enum = sys.version_info >= (3, 6)
-stdlib_ipaddress = sys.version_info >= (3, 3)
-
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
requirements = ['cffi >= 1.6']
-if not stdlib_enum:
- requirements.append('aenum')
-if not stdlib_ipaddress:
- requirements.append('ipaddress')
setup(
name='vpp_papi',
diff --git a/src/vpp-api/python/vpp_papi/vpp_serializer.py b/src/vpp-api/python/vpp_papi/vpp_serializer.py
index 09294875305..a5680335536 100644
--- a/src/vpp-api/python/vpp_papi/vpp_serializer.py
+++ b/src/vpp-api/python/vpp_papi/vpp_serializer.py
@@ -13,23 +13,14 @@
# limitations under the License.
#
import collections
+from enum import IntFlag
import logging
import socket
import struct
import sys
-if sys.version_info <= (3, 4):
- from aenum import IntEnum # noqa: F401
-else:
- from enum import IntEnum # noqa: F401
-
-if sys.version_info <= (3, 6):
- from aenum import IntFlag # noqa: F401
-else:
-
- from enum import IntFlag # noqa: F401
+from . import vpp_format
-from . import vpp_format # noqa: E402
#
# Set log-level in application by doing e.g.: