> ```python > try: > from setuptools import setup, Extension > import sysconfig > except ImportError: > from distutils.core import setup, Extension > from distutils import sysconfig > ``` This ```diff diff --git a/bindings/python/setup.py.in b/bindings/python/setup.py.in index fbac3e6df..c5bbec503 100644 --- a/bindings/python/setup.py.in +++ b/bindings/python/setup.py.in @@ -3,7 +3,7 @@ from __future__ import print_function # setuptools._distutils added in setuptools v48.0.0 # c.f. https://setuptools.pypa.io/en/latest/history.html#v48-0-0 try: - from setuptools._distutils.core import setup, Extension + from setuptools import setup, Extension # sysconfig v48.0.0+ is incompatible for Python 3.6 only, so fall back to distutils. # Instead of checking setuptools.__version__ explicitly, use the knowledge that # to get here in the 'try' block requires setuptools v48.0.0+. ``` works now (including for [`setuptools` `v65.6.0+`](https://setuptools.pypa.io/en/latest/history.html#v65-6-0).) ![Screenshot from 2022-11-30 14-23-30](https://user-images.githubusercontent.com/5142394/204900576-2f505f14-f53b-48ee-9526-f0583d4d5b47.png) Making a PR now. -- Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/issues/1830#issuecomment-1332697019 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