python
python copied to clipboard
setup.py: support PEP 517 isolated builds
When doing a PEP 517 isolated build (e. g. when using pdm install), importing the project module normally is not possible. Instead, use importlib to load __init__.py directly and extract __version__ from there.