When you import setuptools
, or anything inside setuptools
, that injects (1, 2) setuptools._distutils
as distutils
in sys.modules
. IIRC, pip also injects setuptool's distutils for you in some cases, but I wouldn't depend on that. But yes, you should always import setuptools
before touching distutils. This is especially true in Python 3.12a2+, where distutils has been removed.
Though it looks like you do avoid that? Why are you getting setup
& Extension
from setuptools._distutils.core
instead of setuptools
, though? egg_info
is a setuptools thing, so that's likely why the distutils version is broken.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1