Print

Print


Hi @henryiii, thanks for the comments. I tried to use
```python
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](https://peps.python.org/pep-0517/) and [PEP 632](https://peps.python.org/pep-0632/), dropping usage of deprecated stuff altogether.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1830#issuecomment-1332657316
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
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