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

Ensure compiled translation .mo files are picked up during build phase #1059

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

lw
Copy link
Member

@lw lw commented Nov 1, 2018

There was a bug where simply running ./setup.py install from a fresh checkout would compile the .po files into .mo files but wouldn't copy them to the build/ subdirectory. Running build then install (or running install twice) would fix that issue as the files compiled by the first pass would get picked up at the second one.

This issue didn't affect the develop mode, since there the "installed" package is just a symlink to the source tree, where these files exist.

This needs to be backported to v1.4.


This change is Reviewable

There was a bug where simply running `./setup.py install` from a fresh
checkout would compile the .po files into .mo files but wouldn't copy
them to the `build/` subdirectory. Running `build` then `install` (or
running `install` twice) would fix that issue as the files compiled by
the first pass would get picked up at the second one.

This issue didn't affect the `develop` mode, since there the "installed"
package is just a symlink to the source tree, where these files exist.
@lw lw requested a review from stefano-maggiolo November 1, 2018 11:21
@codecov
Copy link

codecov bot commented Nov 1, 2018

Codecov Report

Merging #1059 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1059      +/-   ##
==========================================
- Coverage   62.05%   61.98%   -0.08%     
==========================================
  Files         228      228              
  Lines       16437    16437              
==========================================
- Hits        10200    10188      -12     
- Misses       6237     6249      +12
Flag Coverage Δ
#functionaltests 45.94% <ø> (-0.16%) ⬇️
#unittests 43.18% <ø> (ø) ⬆️
Impacted Files Coverage Δ
cms/server/contest/handlers/taskusertest.py 38.78% <0%> (-4.85%) ⬇️
cms/server/contest/handlers/tasksubmission.py 41.11% <0%> (-3.34%) ⬇️
cms/io/PsycoGevent.py 65.71% <0%> (-2.86%) ⬇️
cms/service/esoperations.py 80.85% <0%> (-1.42%) ⬇️
cms/server/admin/handlers/base.py 67.11% <0%> (-1.02%) ⬇️
cms/db/filecacher.py 77.04% <0%> (-0.99%) ⬇️
cms/service/ResourceService.py 57.6% <0%> (-0.93%) ⬇️
cms/server/admin/handlers/task.py 41.01% <0%> (-0.4%) ⬇️
cms/io/rpc.py 90.44% <0%> (ø) ⬆️
cms/service/workerpool.py 62.77% <0%> (+0.55%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eea227f...203b65e. Read the comment docs.

@lw
Copy link
Member Author

lw commented Nov 1, 2018

LGTM given after private discussion.

@lw lw merged commit ed49fcd into cms-dev:master Nov 1, 2018
@lw lw deleted the build_mo branch November 1, 2018 14:30
@lw
Copy link
Member Author

lw commented Nov 1, 2018

Merged into master and v1.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant