Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump setuptools version to >=59 #812

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools>=48.0.0",
"setuptools>=59.0.0",
"cython",
"numpy>=1.17.0",
"versioneer[toml]>=0.28",
Expand Down Expand Up @@ -46,7 +46,7 @@ keywords = [
"differentiation",
]
dependencies = [
"setuptools>=48.0.0",
"setuptools>=59.0.0",
"scipy>=0.14",
"numpy>=1.17.0,<2",
"filelock",
Expand Down
19 changes: 1 addition & 18 deletions pytensor/link/c/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
try:
from setuptools.errors import CompileError as BaseCompileError
except ImportError:
import warnings
from distutils.errors import CompileError as BaseCompileError # type: ignore
from importlib.metadata import version

# These exception classes were made available in setuptools
# since v59.0.0 via <https://github.com/pypa/setuptools/pull/2858>
# in preparation for distutils deprecation. Complain loudly if they
# are not available.
setuptools_version = version("setuptools")
warnings.warn(
f"You appear to be using an ancient version of setuptools: "
f"v{setuptools_version}. Please upgrade to at least v59.0.0. "
f"Support for this version of setuptools is provisionary and "
f"may be removed without warning in the future."
)
from setuptools.errors import CompileError as BaseCompileError


class MissingGXX(Exception):
Expand Down
Loading