Skip to content

Commit ee0075b

Browse files
maresbricardoV94
authored andcommitted
Bump setuptools version to >=59
1 parent 1935809 commit ee0075b

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=48.0.0",
3+
"setuptools>=59.0.0",
44
"cython",
55
"numpy>=1.17.0",
66
"versioneer[toml]>=0.28",
@@ -46,7 +46,7 @@ keywords = [
4646
"differentiation",
4747
]
4848
dependencies = [
49-
"setuptools>=48.0.0",
49+
"setuptools>=59.0.0",
5050
"scipy>=0.14",
5151
"numpy>=1.17.0,<2",
5252
"filelock",

pytensor/link/c/exceptions.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
try:
2-
from setuptools.errors import CompileError as BaseCompileError
3-
except ImportError:
4-
import warnings
5-
from distutils.errors import CompileError as BaseCompileError # type: ignore
6-
from importlib.metadata import version
7-
8-
# These exception classes were made available in setuptools
9-
# since v59.0.0 via <https://github.com/pypa/setuptools/pull/2858>
10-
# in preparation for distutils deprecation. Complain loudly if they
11-
# are not available.
12-
setuptools_version = version("setuptools")
13-
warnings.warn(
14-
f"You appear to be using an ancient version of setuptools: "
15-
f"v{setuptools_version}. Please upgrade to at least v59.0.0. "
16-
f"Support for this version of setuptools is provisionary and "
17-
f"may be removed without warning in the future."
18-
)
1+
from setuptools.errors import CompileError as BaseCompileError
192

203

214
class MissingGXX(Exception):

0 commit comments

Comments
 (0)