Hi @henryiii, thanks for the comments. I tried to use

try:
    import setuptools
except ImportError:
    pass

from distutils.core import setup, Extension
from distutils import sysconfig

but unfortunately this still fails in some cases. The idea is to use import setuptools to override distutils when that's available. I also tried a variant in which I do from setuptools import setup, Extension then just import sysconfig, but that also didn't work everywhere. Tomorrow I will try to debug the failures and find a solution, but in the longer term, I think I will just take some time to write new python packaging code following PEP 517 and PEP 632, dropping usage of deprecated stuff altogether.


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/1332657316@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1830#issuecomment-1332657316", "url": "https://github.com/xrootd/xrootd/issues/1830#issuecomment-1332657316", "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