diff --git a/setup.py b/setup.py index 22a76ef..6272aab 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ # https://numpy.org/doc/stable/reference/distutils_status_migration.html#distutils-status-migration try: from numpy.distutils.core import Extension, setup -except ModuleNotFoundError as err: +except ModuleNotFoundError: if tuple(sys.version_info[:2]) >= (3, 11): raise NotImplementedError( "numpy.distutils has been removed for python {}".format( @@ -21,8 +21,6 @@ ) raise -import sys, os - try: import py2exe except ImportError: