pocketsphinx-python icon indicating copy to clipboard operation
pocketsphinx-python copied to clipboard

Fix build against setuptools 65

Open sthibaul opened this issue 2 years ago • 0 comments

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.

sthibaul avatar Sep 25 '22 23:09 sthibaul