From f3ca1a8cd3e24c586d8e59d1c755f3b3d8502e5f Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 17 Apr 2023 19:52:30 +0200 Subject: [PATCH 1/2] Import CompileError from setuptools not distutils --- pytensor/link/c/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytensor/link/c/exceptions.py b/pytensor/link/c/exceptions.py index 048b9a01fb..19cea04fe6 100644 --- a/pytensor/link/c/exceptions.py +++ b/pytensor/link/c/exceptions.py @@ -1,4 +1,4 @@ -from setuptools._distutils.errors import CompileError as BaseCompileError +from setuptools.errors import CompileError as BaseCompileError class MissingGXX(Exception): From 0cc24b63eb0ba9dc875f05e8d88cb612d946e5dd Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 17 Apr 2023 23:55:07 +0200 Subject: [PATCH 2/2] Pin types-setuptools This is to ensure that we get python/typeshed#10057 so that #277 is resolved. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6aad94dddc..83e57cd58a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -61,7 +61,7 @@ repos: - numpy>=1.20 - pandas - types-filelock - - types-setuptools + - types-setuptools>=67.6.0.8 always_run: true require_serial: true pass_filenames: false