Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Aug 8, 2025

This PR fixes #33146, which may be considered a regression introduced in #31233.

This approach was chosen for its minimal diff.

An alternative approach would be to convert the translate build target into a CMake script. This could be justified, as the goal is to update files in the source tree and then commit them to the repository, which is something regular build targets are not intended to do.

On a related note, the share/qt/extract_strings_qt.py looks simple enough to be rewritten in pure CMake code.

hebasto added 2 commits August 8, 2025 12:41
Python is used by the `translate` build target to update the
translation source files from the codebase.
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 8, 2025

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33156.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK pablomartin4btc
Concept ACK Sammie05

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #33200 (cmake: Introduce translate.cmake script for translate target by purpleKarrot)
  • #31802 (Add bitcoin-{node,gui} to release binaries for IPC by Sjors)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@Sammie05
Copy link

This is a solid improvement and should be especially beneficial for developers without Python environments and enhances our build system’s efficiency by reducing dependencies. Great work!

ACK

Copy link
Member

@pablomartin4btc pablomartin4btc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 55c11e8

An alternative approach would be to convert the translate build target into a CMake script.

I think that would help resolve some diffs we occasionally see, which I suspect could be caused by subtle variations in how Python versions (locale settings, or encoding defaults) format or order strings during translation processing. This change should make the translation output consistent across environments.

@hebasto
Copy link
Member Author

hebasto commented Aug 15, 2025

Add to the 30.0 milestone?

@maflcko
Copy link
Member

maflcko commented Aug 18, 2025

Add to the 30.0 milestone?

This one or #33200?

@hebasto
Copy link
Member Author

hebasto commented Aug 18, 2025

Add to the 30.0 milestone?

This one or #33200?

#33200 doesn't solve the issue. But @purpleKarrot has a working branch on top of it that replaces Python code with pure CMake code.

@purpleKarrot
Copy link
Contributor

This removes the Python dependency: #33209

@maflcko
Copy link
Member

maflcko commented Aug 18, 2025

I see. No strong opinion on which direction to take, but this one need rebase, if still relevant.

@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

@hebasto
Copy link
Member Author

hebasto commented Aug 18, 2025

Closing in favour of #33209.

@hebasto hebasto closed this Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doc: GUI Python dependency is not documented
6 participants