Bug 2453825 - pywhispercpp fails to build with setuptools_scm 10+
Summary: pywhispercpp fails to build with setuptools_scm 10+
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: pywhispercpp
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Manish Tiwari
QA Contact:
URL:
Whiteboard:
: 2485991 (view as bug list)
Depends On:
Blocks: PYTHON3.15 F45FTBFS, RAWHIDEFTBFS F45FailsToInstall, RAWHIDEFailsToInstall 2451398
TreeView+ depends on / blocked
 
Reported: 2026-04-01 12:16 UTC by Miro Hrončok
Modified: 2026-06-11 11:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-11 11:38:24 UTC
Type: Bug
Embargoed:
matiwari: mirror+


Attachments (Terms of Use)

Description Miro Hrončok 2026-04-01 12:16:51 UTC
We are trying to python-setuptools_scm to version 10.x

https://src.fedoraproject.org/rpms/python-setuptools_scm/pull-request/39


This package fails to build with:

error: Installed (but unpackaged) file(s) found:
   /usr/lib64/python3.14/site-packages/__pycache__/_version.cpython-314.opt-1.pyc
   /usr/lib64/python3.14/site-packages/__pycache__/_version.cpython-314.pyc
   /usr/lib64/python3.14/site-packages/_version.py

https://copr.fedorainfracloud.org/coprs/churchyard/vcs-versioning/package/pywhispercpp/



See https://setuptools-scm.readthedocs.io/en/latest/changelog/#1000-2026-02-26

"""
Version files (write_to and version_file) are now written to the build directory during build_py instead of the source tree during version inference. This enables installing packages from read-only source directories (e.g., Bazel builds).

Path transformation is automatically applied for src/ layouts - a configured path like src/mypackage/_version.py is correctly written to mypackage/_version.py in the build directory based on the package_dir configuration.

To restore the old behavior of writing version files at inference time (useful for development workflows), set the environment variable SETUPTOOLS_SCM_WRITE_TO_SOURCE=1. https://github.com/pypa/setuptools-scm/issues/1252
"""

Comment 1 Miro Hrončok 2026-04-16 09:42:41 UTC
Do you need help fixing this? Please respond.

Comment 2 Manish Tiwari 2026-04-16 19:49:13 UTC
Hi, 
setting up env var SETUPTOOLS_SCM_WRITE_TO_SOURCE=1 doesn't help,

So I removed generated version file and bytecode to build it successfully with setuptools_scm 10
scratch-build: https://koji.fedoraproject.org/koji/taskinfo?taskID=144514253

Comment 3 Miro Hrončok 2026-04-17 11:48:40 UTC
You are not the first person who says SETUPTOOLS_SCM_WRITE_TO_SOURCE=1 doesn't help, I will investigate.

Comment 4 Miro Hrončok 2026-04-17 12:12:43 UTC
Reported https://github.com/pypa/setuptools-scm/issues/1364

Comment 5 Karolina Surma 2026-06-06 18:25:44 UTC
*** Bug 2485991 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Fails To Install 2026-06-11 11:38:24 UTC
Hello,

Please note that this comment was generated automatically by https://forge.fedoraproject.org/releng/tooling/src/branch/main/release-process/bug-filing/follow-policy/follow_policy.py
If you feel that this output has mistakes, please open an issue at https://forge.fedoraproject.org/releng/tickets/issues

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 45.

Thanks for taking care of it!


Note You need to log in before you can comment on or make changes to this bug.