As indicated in the Spack PR setup.py is lacking the option --single-version-externally-managed which makes it necessary to install the package in a non-standard way (from the Spack perspective). The lack of this option might indicate that setuptools is not used or differently than expected.
I did a quick check by removing the import of the setuptools modulessetup and test and it turns out that we need setuptools. Could it still be that distutils and setuptools interfere?
What behavior should be expected?
Link to PR: spack/spack#19558