Skip to content

Commit

Permalink
adjust use of setuptools to support version 68.2 (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe authored Sep 7, 2023
1 parent a383a63 commit 7f1f011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import platform
import subprocess

from setuptools import setup, setuptools, Extension
from setuptools import setup, errors, Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion

Expand Down Expand Up @@ -134,7 +134,7 @@ def has_flag(compiler, flagname):
f.write("int main (int argc, char **argv) { return 0; }")
try:
compiler.compile([f.name], extra_postargs=[flagname])
except setuptools.distutils.errors.CompileError:
except errors.CompileError:
return False
return True

Expand Down

0 comments on commit 7f1f011

Please sign in to comment.