Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make _build.py compatible with msgfmt.py #691

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

carmenbianca
Copy link
Member

If gettext is not installed, _build.py falls back to msgfmt.py, which is provided by upstream Python. However, msgfmt.py is more sensitive to the order of arguments.

If gettext is not installed, _build.py falls back to msgfmt.py, which is
provided by upstream Python. However, msgfmt.py is more sensitive to the
order of arguments.

Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
@mxmehl
Copy link
Member

mxmehl commented Feb 22, 2023

Probably not related, but in the Docker build we also have an error on msgfmt:

https://github.com/fsfe/reuse-tool/actions/runs/4211530610/jobs/7309939780#step:3:134

Building reuse (1.1.2)
  - Building sdist
  - Built reuse-1.1.2.tar.gz
  - Building wheel
/reuse-tool/_build.py:69: UserWarning: msgfmt is not installed. Translations will not be included.
  warn("msgfmt is not installed. Translations will not be included.")
  - Built reuse-1.1.2-cp310-cp310-musllinux_1_2_x86_64.whl
Removing intermediate container 0e171192ebba
 ---> 526f3ec9e4f8

Can this be addressed here as well, or is it a separate issue?

@carmenbianca
Copy link
Member Author

It's a separate issue. Thanks for noticing. Opened #693 to discuss that.

@linozen
Copy link
Member

linozen commented Apr 5, 2023

LGTM 👍 Will merge now!

@linozen linozen merged commit 3171e0e into fsfe:main Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants