Open hariom-qure opened 1 year ago
Later versions of Setuptools introduced a _distutils_hack
that works to ensure that distutils
is imported not from stdlib but from setuptools._distutils
. It achieves this end by installing a MetaFinder that imports setuptools._distutils
when distutils
is requested. The fact that the assertion is triggering suggests that the MetaFinder isn't having any effect (perhaps because a Pyoxidizer meta finder is taking precedence).
I'd suggest setting a breakpoint at line 60 (inside the shim) and evaluate the environment to determine why import distutils
isn't resolving from setuptools._distutils
.
In the meantime, you may be able to work around the issue by setting SETUPTOOLS_USE_DISTUTILS=stdlib
.
Our project uses
Cythonize
andsetuptools
in a dependency. The output generated by pyoxidizer fails when it encounters the import in code.Django==3.2.5
pyoxidizer==0.24.0
OS details
Error trace