FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix build against setuptools 65 by sthibaul · Pull Request #77 · bambocher/pocketsphinx-python · GitHub

This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Repository navigation

Fix build against setuptools 65 - #77

Open
sthibaul wants to merge 1 commit into
bambocher:masterfrom
sthibaul:master
Open

sthibaul wants to merge 1 commit into
bambocher:masterfrom
sthibaul:master

Conversation

Copy link
Copy Markdown

The newer setuptools warns:

/usr/lib/python3/dist-packages/_distutils_hack/init.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the distutils module in sys.modules. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.

So we have to import setuptools before any distutils import.

The newer setuptools warns:

/usr/lib/python3/dist-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.

So we have to import setuptools before any distutils import.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL