maintainer-feedback requested: [Bug 255579] devel/py-pip: build fails with DOCS option
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 3 20:53:20 UTC 2021
Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-python (Nobody)
<python at FreeBSD.org> for maintainer-feedback:
Bug 255579: devel/py-pip: build fails with DOCS option
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255579
--- Description ---
When DOCS option is on, the build calls 'setup.py build_sphinx'. This error
occurs when using python3.6:
====================
.
.
File "/tmp/pip-20.3.4/docs/docs_feedback_sphinxext.py", line 3
from __future__ import annotations
^
SyntaxError: future feature annotations is not defined
====================
20.3.4 has a new docs_feedback_sphinxext.py file which has:
from __future__ import annotations
This fails with python3.6.
Workaround: WITHOUT=DOCS for python3.6
The easy change is probably to change USES=python:3.6+ to 3.7+ (this could be
dependent on whether DOCS is on but that is probably more trouble than it's
worth).
More information about the freebsd-python
mailing list