Skip to content

4.50.1: wheel build from sdist fails due to missing docs/man/tox.1.rst #3889

@mtelka

Description

@mtelka

Issue

I'm trying to build a wheel from the sdist, but it fails with:

* Building wheel...
Traceback (most recent call last):
  File "/usr/lib/python3.14/vendor-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
  File "/usr/lib/python3.14/vendor-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/vendor-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
    return _build_backend().build_wheel(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        wheel_directory, config_settings, metadata_directory
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/vendor-packages/hatchling/build.py", line 58, in build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, versions=["standard"])))
                            ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/vendor-packages/hatchling/builders/plugin/interface.py", line 149, in build
    build_hook.initialize(version, build_data)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/data/builds/ul-mass-rebuild/components/python/tox/build/amd64-3.14/hatch_build.py", line 19, in initialize
    for line in (root / "docs" / "man" / "tox.1.rst").read_text(encoding="utf-8").splitlines()
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/pathlib/__init__.py", line 787, in read_text
    with self.open(mode='r', encoding=encoding, errors=errors, newline=newline) as f:
         ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/pathlib/__init__.py", line 771, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/ul-mass-rebuild/components/python/tox/build/amd64-3.14/docs/man/tox.1.rst'

ERROR Backend subprocess exited when trying to invoke build_wheel

The command used to build wheel is: /usr/bin/python3.14 -m build --wheel --no-isolation

Environment

Provide at least:

  • OS: OpenIndiana Hipster
Output of pip list of the host Python, where tox is installed
Package                           Version
--------------------------------- -----------------
aiohappyeyeballs                  2.6.1
aiohttp                           3.13.0
aiosignal                         1.4.0
alabaster                         1.0.0
aniso8601                         10.0.1
annotated-types                   0.7.0
ansi2html                         1.9.2
ansible                           8.7.0
ansible-core                      2.15.12
anyio                             4.12.1
apeye                             1.4.1
apeye-core                        1.1.5
appdirs                           1.4.4
argcomplete                       3.6.3
argh                              0.31.3
argon2-cffi                       25.1.0
argon2-cffi-bindings              25.1.0
asgiref                           3.11.1
assertpy                          1.1
astroid                           3.3.10
asttokens                         3.0.0
async-timeout                     5.0.1
attrs                             25.4.0
autocommand                       2.2.2
Automat                           25.4.16
autopage                          0.6.0
autopep8                          2.3.2
babel                             2.18.0
backcall                          0.2.0
backports.asyncio.runner          1.2.0
backports-datetime-fromisoformat  2.0.3
backports.entry-points-selectable 1.3.0
backports.tarfile                 1.2.0
barman                            3.17.0
bcrypt                            5.0.0
beautifulsoup4                    4.14.2
betamax                           0.9.0
black                             25.9.0
blessings                         1.7
blinker                           1.9.0
borgbackup                        1.4.3
bottle                            0.13.4
bracex                            2.6
Brotli                            1.1.0
brotlicffi                        1.2.0.1
BTrees                            6.1
build                             1.4.0
CacheControl                      0.14.3
cached-property                   2.0.1
cachetools                        6.2.6
calver                            2025.10.20
cattrs                            25.3.0
ccsm                              0.8.18
certifi                           2026.2.25
cffi                              2.0.0
cfgv                              3.5.0
Chameleon                         4.6.0
chardet                           5.2.0
charset-normalizer                3.4.6
check-manifest                    0.51
cheroot                           11.0.0
CherryPy                          18.10.0
CJKwrap                           2.2
cleo                              2.1.0
click                             8.1.8
click-help-colors                 0.9.4
cliff                             4.9.1
cloudpickle                       3.1.1
cmarkgfm                          2025.10.22
cmd2                              2.6.2
codespell                         2.4.1
coherent.deps                     1.6.0
coherent.licensed                 0.5.2
coincidence                       0.6.6
colorama                          0.4.6
colorlog                          6.10.1
configobj                         5.0.9
ConfigUpdater                     3.2
consolekit                        1.9.0
constantly                        23.10.4
contextlib2                       21.6.0
covdefaults                       2.3.0
coverage                          7.10.7
coverage-enable-subprocess        1.0
crashtest                         0.4.1
crmsh                             4.5.0
cryptography                      46.0.5
cryptography_vectors              46.0.5
cssselect                         1.3.0
cupshelpers                       1.0
Cython                            3.1.7
cython-test-exception-raiser      25.11.1
dbus-python                       1.3.2
ddt                               1.7.2
decorator                         5.2.1
defusedxml                        0.7.1
dependency-groups                 1.3.1
deprecation                       2.1.0
deprecation-alias                 0.4.0
detect_test_pollution             1.2.0
diff_cover                        9.7.1
dill                              0.4.1
dirty-equals                      0.11
dist-meta                         0.9.0
distlib                           0.4.0
distro                            1.9.0
dnspython                         2.7.0
docutils                          0.22.4
dogpile.cache                     1.4.1
dom-toml                          2.3.0
domdf_python_tools                3.10.0
dulwich                           0.22.8
dunamai                           1.26.0
editables                         0.5
elastic-transport                 8.17.1
elasticsearch                     9.0.2
elementpath                       5.0.4
email-validator                   2.3.0
ephemeral_port_reserve            1.1.4
eval_type_backport                0.2.2
exceptiongroup                    1.3.1
execnet                           2.1.2
executing                         2.2.1
expandvars                        1.1.2
factory_boy                       3.3.3
fail2ban                          1.1.0
Faker                             37.8.0
fastjsonschema                    2.21.2
filelock                          3.19.1
findpython                        0.7.1
first                             2.0.2
fixtures                          4.2.6
flake8                            7.3.0
flake8-bugbear                    24.12.12
flake8-noqa                       1.4.0
flake8_typing_imports             1.17.0
flaky                             3.8.1
flamegraph                        0.1
Flask                             3.1.2
flit_core                         3.12.0
flit_scm                          1.7.0
freezegun                         1.5.5
frozendict                        2.4.7
frozenlist                        1.8.0
fs                                2.4.16
funcy                             2.0
gevent                            24.2.1
ghp-import                        2.1.0
gi-docgen                         2026.1
gitdb                             4.0.12
GitPython                         3.1.46
gpep517                           19
gprof2dot                         2025.4.14
graphviz                          0.21
greenlet                          3.2.4
gunicorn                          23.0.0
h11                               0.16.0
h2                                4.3.0
handy-archives                    0.2.0
hatch-fancy-pypi-readme           25.1.0
hatch-nodejs-version              0.4.0
hatch-requirements-txt            0.4.1
hatch-vcs                         0.5.0
hatchling                         1.27.0
housekeeping                      1.1
hpack                             4.1.0
httpcore                          1.0.9
httplib2                          0.30.2
httpx                             0.28.1
humanize                          4.13.0
hupper                            1.12.1
hyperframe                        6.1.0
hyperlink                         21.0.0
hypothesis                        6.141.1
icecream                          2.1.8
id                                1.5.0
identify                          2.6.15
idna                              3.11
imagesize                         1.5.0
immutables                        0.21
importcheck                       0.5.0
importlib_metadata                8.7.1
importlib_resources               6.5.2
Incremental                       24.11.0
inflect                           7.5.0
ini2toml                          0.15
iniconfig                         2.1.0
inline-snapshot                   0.29.3
installer                         0.7.0
invocations                       4.0.2
invoke                            2.2.1
ipdb                              0.13.13
ipython                           8.18.1
iso8601                           2.1.0
isort                             6.0.1
itsdangerous                      2.2.0
jaraco.classes                    3.4.0
jaraco.collections                5.2.1
jaraco.compat                     4.3.1
jaraco.context                    6.0.1
jaraco.develop                    8.17.6
jaraco.env                        1.0.0
jaraco.envs                       2.6.0
jaraco.functools                  4.4.0
jaraco.itertools                  6.4.3
jaraco.logging                    3.4.0
jaraco.mongodb                    12.4.0
jaraco.packaging                  10.2.3
jaraco.path                       3.7.2
jaraco.services                   4.0.0
jaraco.test                       5.5.1
jaraco.text                       4.0.0
jaraco.ui                         2.4.0
jaraco.vcs                        2.4.1
jaraco.versioning                 1.1.0
jedi                              0.19.2
Jinja2                            3.1.6
jmespath                          1.1.0
jsonpointer                       3.0.0
jsonrpclib-pelix                  1.0.0
jsonschema                        4.25.1
jsonschema-specifications         2025.9.1
jupyter_core                      5.8.1
keyring                           25.7.0
keyrings.alt                      5.0.2
kgb                               7.3
lark                              1.3.1
lazy                              1.6
lazy-object-proxy                 1.12.0
libcst                            1.8.6
lingua                            4.16.2
linkify-it-py                     2.0.3
littleutils                       0.2.4
looseversion                      1.3.0
louis                             3.34.0
lxml                              6.0.2
lxml_html_clean                   0.4.2
lz4                               4.4.5
maison                            2.0.0
Mako                              1.3.10
manuel                            1.13.0
Markdown                          3.9
markdown-it-py                    3.0.0
markdown2                         2.5.4
MarkupSafe                        3.0.3
marshmallow                       4.0.1
matplotlib-inline                 0.2.1
maturin                           1.12.6
mccabe                            0.7.0
mdurl                             0.1.2
mercurial                         6.9.1
mergedeep                         1.3.4
meson                             1.7.2
meson-python                      0.18.0
mistletoe                         1.4.0
mistune                           3.2.0
mkdocs                            1.6.1
mkdocs-bootstrap                  1.1.1
mkdocs-bootswatch                 1.1
mkdocs-get-deps                   0.2.0
mock                              5.2.0
more-itertools                    10.8.0
msgpack                           1.1.2
multidict                         6.7.1
mutagen                           1.47.0
mypy                              1.18.2
mypy_extensions                   1.1.0
mysqlclient                       2.2.7
named                             1.4.2
natsort                           8.4.0
nbformat                          5.10.4
netsnmp-python                    1.0a1
nh3                               0.3.3
nose                              1.3.7
notify2                           0.3.1
nox                               2025.5.1
numpy                             2.0.2
objgraph                          3.6.2
olefile                           0.47
outcome                           1.3.0.post0
packaging                         26.0
parameterized                     0.9.0
paramiko                          3.4.0
parso                             0.8.6
passlib                           1.7.4
Paste                             3.10.1
PasteDeploy                       3.1.0
path                              17.1.1
pathlib2                          2.3.7.post1
pathspec                          1.0.4
pbr                               7.0.3
pdm-backend                       2.4.7
pep440                            0.1.2
persistent                        6.5
pexpect                           4.9.0
pickleshare                       0.7.5
pillow                            11.3.0
pip                               25.2
pip-run                           16.1.0
pipdeptree                        2.26.1
pipenv                            2025.0.4
pkg                               0.1
pkgconfig                         1.5.5
pkginfo                           1.12.1.2
plaster                           1.1.2
plaster_pastedeploy               1.0.1
platformdirs                      4.4.0
pluggy                            1.6.0
ply                               3.11
poetry-core                       2.2.1
poetry-dynamic-versioning         1.10.0
polib                             1.2.0
portend                           3.2.1
powerline-status                  2.8.4
pretend                           1.0.9
prettytable                       3.16.0
process-tests                     3.0.0
prompt_toolkit                    3.0.52
propcache                         0.4.1
psutil                            7.2.2
psycopg2                          2.9.11
ptyprocess                        0.7.0
pure_eval                         0.2.3
puremagic                         1.30
py                                1.11.0
py-cpuinfo                        9.0.0
py3c                              1.4
pyasn1                            0.6.2
pyasn1_modules                    0.4.2
pybind11                          3.0.1
pybonjour                         1.1.1
pycairo                           1.26.1
pycodestyle                       2.14.0
pycparser                         2.23
pycryptodome                      3.23.0
pycryptodome-test-vectors         1.0.22
pycryptodomex                     3.23.0
pycups                            2.0.4
pycurl                            7.45.7
pydantic                          2.10.6
pydantic_core                     2.34.1
pydiffx                           1.1
pyfakefs                          5.10.2
pyflakes                          3.4.0
pyftpdlib                         2.1.0
Pygments                          2.19.2
PyGObject                         3.54.3
PyHamcrest                        2.1.0
PyJWT                             2.11.0
pylint                            3.3.9
pymongo                           4.16.0
PyNaCl                            1.6.2
PyNUTClient                       2.8.2
pyOpenSSL                         26.0.0
pyparsing                         3.3.2
pyperclip                         1.11.0
pypi-json                         0.4.0
pyproject-api                     1.9.1
pyproject-examples                2023.6.30
pyproject-fmt                     2.8.0
pyproject_hooks                   1.2.0
pyproject-installer               0.5.6
pyproject-metadata                0.11.0
pyproject-parser                  0.13.0
PyQt-builder                      1.19.1
PyQt5                             5.15.11
PyQt5_sip                         12.17.1
pyramid                           2.0.2
pyroma                            4.2
pyrsistent                        0.20.0
PySocks                           1.7.1
pytest                            8.4.2
pytest-asyncio                    1.2.0
pytest-benchmark                  5.2.3
pytest-black                      0.6.0
pytest-check                      2.6.2
pytest-checkdocs                  2.13.0
pytest-console-scripts            1.4.1
pytest-cov                        6.3.0
pytest-custom_exit_code           0.3.0
pytest-datadir                    1.8.0
pytest-dependency                 0.6.1
pytest-enabler                    3.4.0
pytest-env                        1.1.5
pytest-fixture-config             1.8.0
pytest-flake8                     1.3.0
pytest-forked                     1.6.0
pytest_freezer                    0.4.9
pytest-home                       0.6.0
pytest_httpserver                 1.1.3
pytest-ignore-flaky               2.2.1
pytest-lazy-fixtures              1.4.0
pytest-metadata                   3.1.1
pytest-mock                       3.15.1
pytest-mypy                       1.0.1
pytest-mypy-plugins               3.2.0
pytest-order                      1.3.0
pytest-perf                       0.15.0
pytest-randomly                   4.0.1
pytest-regressions                2.8.3
pytest-relaxed                    2.0.2
pytest-reporter                   0.5.3
pytest-rerunfailures              16.1
pytest-run-parallel               0.8.2
pytest-socket                     0.7.0
pytest-subprocess                 1.5.3
pytest-subtests                   0.15.0
pytest-timeout                    2.4.0
pytest-xdist                      3.8.0
pytest-xprocess                   1.0.2
python-dateutil                   2.9.0.post0
python-dbusmock                   0.37.1
python-dotenv                     1.1.1
python-magic                      0.4.27
python-rapidjson                  1.21
python-subunit                    0.0
python-xlib                       0.33
pytidylib                         0.3.2
pytimeparse                       1.1.8
pytokens                          0.3.0
pytoolconfig                      1.3.1
pytz                              2025.2
pyxdg                             0.28
PyYAML                            6.0.3
pyyaml_env_tag                    1.1
pyzmq                             27.1.0
railroad-diagrams                 3.0.1
RapidFuzz                         3.13.0
RBTools                           5.2.1
rdiff-backup                      2.2.6
re_assert                         1.1.0
readme_renderer                   44.0
readthedocs-sphinx-ext            2.2.5
redis                             6.2.0
referencing                       0.36.2
regex                             2026.1.15
releases                          2.1.1
repoze.lru                        0.7
repoze.sphinx.autointerface       1.0.0
requests                          2.32.5
requests-file                     2.1.0
requests-toolbelt                 1.0.0
requests-wsgi-adapter             0.4.1
resolvelib                        1.2.1
retry-requests                    2.0.0
rfc3986                           2.0.0
rich                              14.2.0
roman-numerals                    3.1.0
Routes                            2.5.1
rpds-py                           0.30.0
rrdtool                           0.1.10
ruamel.yaml                       0.18.17
ruamel.yaml.clib                  0.2.15
ruyaml                            0.91.0
schema                            0.7.8
scikit-build                      0.18.1
scikit_build_core                 0.12.2
SCons                             4.10.1
scour                             0.38.2
scripttest                        2.0.post1
sdjson                            0.5.0
seedir                            0.5.1
semantic_version                  2.10.0
serpent                           1.42
service-identity                  24.2.0
setuptools                        80.10.2
setuptools-rust                   1.12.0
setuptools-scm                    9.2.2
sh                                1.14.3
shellingham                       1.5.4
shippinglabel                     2.3.0
simplejson                        3.20.2
sip                               6.14.0
six                               1.17.0
smartypants                       2.0.2
smmap                             5.0.3
sniffio                           1.3.1
snowballstemmer                   3.0.1
socksio                           1.0.0
sortedcontainers                  2.4.0
soupsieve                         2.8.3
Sphinx                            7.4.7
sphinx-autodoc-typehints          2.3.0
sphinx-issues                     5.0.1
sphinx_rtd_theme                  3.0.2
sphinxcontrib-applehelp           2.0.0
sphinxcontrib-devhelp             2.0.0
sphinxcontrib-htmlhelp            2.1.0
sphinxcontrib-jquery              4.1
sphinxcontrib-jsmath              1.0.1
sphinxcontrib-qthelp              2.0.0
sphinxcontrib-serializinghtml     2.0.0
sphobjinv                         2.3.1.3
sqlparse                          0.5.5
stack-data                        0.6.3
stdio-mgr                         1.0.1.1
stestr                            4.2.0
stevedore                         5.5.0
StrEnum                           0.4.15
strictyaml                        1.7.3
subprocess-tee                    0.4.2
sure                              2.0.1
sybil                             9.3.0
tabulate                          0.9.0
tempora                           5.8.1
termcolor                         3.1.0
terminator                        2.1.3
testfixtures                      8.3.0
testpath                          0.6.0
testresources                     2.0.2
testscenarios                     0.5.0
testtools                         2.7.2
texttable                         1.7.0
time-machine                      2.17.0
tokenize_rt                       6.2.0
toml                              0.10.2
toml-fmt-common                   1.0.1
tomli                             2.4.0
tomli_w                           1.2.0
tomlkit                           0.14.0
tornado                           6.5.2
tox                               4.30.3
tox-current-env                   0.0.16
tqdm                              4.67.1
traitlets                         5.14.3
transaction                       5.0
translationstring                 1.4
trove-classifiers                 2026.1.14.14
trustme                           1.2.1
twine                             6.2.0
Twisted                           24.11.0
typeguard                         4.4.4
typer                             0.12.4
types-decorator                   5.2.0.20251101
types-docutils                    0.22.3.20251115
types-mock                        5.2.0.20250924
types-paramiko                    4.0.0.20250822
types-psutil                      7.2.2.20260130
types-python-dateutil             2.9.0.20260124
types-pytz                        2025.2.0.20251108
types-PyYAML                      6.0.12.20250915
types-requests                    2.32.4.20260107
types-setuptools                  81.0.0.20260209
types-six                         1.17.0.20251009
types-toml                        0.10.8.20240310
typing_extensions                 4.15.0
typing-inspect                    0.9.0
typing-inspection                 0.4.2
typogrify                         2.1.0
tzdata                            2025.3
u-msgpack-python                  2.8.0
uc-micro-py                       1.0.3
ukkonen                           1.0.1
UkPostcodeParser                  1.1.2
unearth                           0.17.5
Unidecode                         1.4.0
urllib3                           2.6.3
uv-build                          0.10.10
uvicorn                           0.39.0
validate-pyproject                0.16
validators                        0.35.0
venusian                          3.1.1
versioneer                        0.29
virtualenv                        20.37.0
voluptuous                        0.16.0
waitress                          3.0.2
watchdog                          6.0.0
wcag-contrast-ratio               0.9
wcmatch                           10.1
wcwidth                           0.6.0
WebOb                             1.8.9
websockets                        15.0.1
WebTest                           3.0.7
Werkzeug                          3.1.3
whatever                          0.7
wheel                             0.46.3
whey                              0.1.1
wrapt                             2.1.1
WSGIProxy2                        0.5.1
xmlschema                         4.2.0
xmltodict                         1.0.4
yamlfix                           1.19.1
yamllint                          1.37.1
yarl                              1.22.0
youtube-dl                        2021.12.17
yt-dlp                            2025.9.26
zc.lockfile                       4.0
ZConfig                           4.3
zest.releaser                     9.6.2
zipp                              3.23.0
ZODB                              6.1
zodbpickle                        4.3
zope.component                    7.0
zope.configuration                7.0
zope.copy                         6.0
zope.deferredimport               6.0
zope.deprecation                  6.0
zope.event                        6.1
zope.exceptions                   6.0
zope.hookable                     8.2
zope.i18nmessageid                8.0
zope.interface                    8.0.1
zope.location                     6.0
zope.proxy                        7.0
zope.schema                       8.1
zope.security                     8.1
zope.testing                      6.0
zope.testrunner                   8.1
zstandard                         0.25.0
zstd                              1.5.7.3

Output of running tox

NA

Minimal example

$ wget https://files.pythonhosted.org/packages/source/t/tox/tox-4.50.1.tar.gz
$ gtar xf tox-4.50.1.tar.gz
$ cd tox-4.50.1
$ /usr/bin/python3.14 -m build --wheel --no-isolation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions