Skip to content

Fix setuptools.distutils import for Python 3.12+#646

Open
EmilienM wants to merge 1 commit intonmslib:masterfrom
EmilienM:python12
Open

Fix setuptools.distutils import for Python 3.12+#646
EmilienM wants to merge 1 commit intonmslib:masterfrom
EmilienM:python12

Conversation

@EmilienM
Copy link

The setuptools.distutils.errors.CompileError import path is broken on
Python 3.12+ where setuptools no longer exposes the distutils subpackage
at the old path. Replace with a broad Exception catch which handles
CompileError regardless of setuptools version.

Signed-off-by: Emilien Macchi emacchi@redhat.com

The setuptools.distutils.errors.CompileError import path is broken on
Python 3.12+ where setuptools no longer exposes the distutils subpackage
at the old path. Replace with a broad Exception catch which handles
CompileError regardless of setuptools version.

Signed-off-by: Emilien Macchi <emacchi@redhat.com>
@EmilienM
Copy link
Author

@dyashuni @yurymalkov please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant