diff --git a/setup.py b/setup.py index 91044e60..ab20f5fb 100644 --- a/setup.py +++ b/setup.py @@ -121,15 +121,8 @@ else: ext_modules = [vnctptd, vnctpmd] -def get_env(key: str, default=None): - try: - return os.environ[key] - except KeyError: - return default - - def check_extension_build_flag(key: str, module: Extension): - value = get_env(key, None) + value = os.environ.get(key, None) if value is not None: global ext_modules if value == '1':