Print

Print


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.Message ID: <xrootd/xrootd/issues/1830/1332598290@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1830#issuecomment-1332598290", "url": "https://github.com/xrootd/xrootd/issues/1830#issuecomment-1332598290", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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