Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2023 14:44:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269686] textproc/py-sphinx-autodoc-typehints: Installation in unusable state
Message-ID:  <bug-269686-7788-grHXfU2imR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269686-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269686-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269686

--- 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 p=
ort)
looking like

# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version =3D '1.22'
version_tuple =3D (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__ =3D version =3D '1.22'
__version_tuple__ =3D version_tuple =3D (1, 22)

which is what sphinx-autodoc-typehints expects.

So building in isolation screws up the port system, doing it without isolat=
ion
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269686-7788-grHXfU2imR>