[Bug 269686] textproc/py-sphinx-autodoc-typehints: Installation in unusable state
Date: Sun, 26 Feb 2023 14:44:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269686 --- Comment #1 from Andreas Bilke <andreas@bilke.org> --- I further debugged the problem: The default build command (for pep517 based builds) is python3 -m build -n -w which builds in *non isolation*. Doing this, I get a version.py (for this port) looking like # coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control version = '1.22' version_tuple = (1, 22) which leads to the error above. If I build this python project in an isolated environment (I assume that fetches all python deps explicitly in venv) with python3 -m build -w I get a file like # file generated by setuptools_scm # don't change, don't track in version control __version__ = version = '1.22' __version_tuple__ = version_tuple = (1, 22) which is what sphinx-autodoc-typehints expects. So building in isolation screws up the port system, doing it without isolation results in a broken version.py. I don't know what are the exact differences in deps between isolation/no isolation. I assume some version differences in a dep (like setuptools_scm?). I currently see no way of fixing that problem. I tried to post-patch the generated version.py but the pep517 build commands generates version.py and bundle it in a wheel in one step. -- You are receiving this mail because: You are the assignee for the bug.