Replies: 3 comments 14 replies
-
No. By design, the installation procedure (the part that goes from a wheel to an installed package) does not support custom steps or execution of arbitrary code. Any compilation needs to be done either when building the sdist or when building the wheel. |
Beta Was this translation helpful? Give feedback.
-
I have to warm the thread because I'm still not able to solve the problem. I do have an example project (as a technical demo) to illustrate the case packaging a python project containing GNU gettext files. Please feel free to add Issues and PRs to it to improve it for other readers looking for help. I wasn't able to get @abravalheri The custom build step looks interesting. But I don't know how to "execute" it or how modify the Do I get that right if I can compile po to mo files in a custom build step I do "install" the mo files after it via something like this in the
|
Beta Was this translation helpful? Give feedback.
-
Indeed overwriting
This is object oriented programming and inheritance at play and the way Python handles class attributes. I will not go to specific details here because that is general Python programming, but I find that what works best for me to understand these things is to play around in the Python REPL and formulate/test hypothesis.
pip flow
setuptools flow
bdist_wheel flow (implemented in the
|
Beta Was this translation helpful? Give feedback.
-
I have a Python project setup with pyproject.toml only. There are some po files in it.
For me it makes sense to not ship the mo-files (compiled po) with that project. The compilation should be done while installation. Technically it means that
msgfmt
need to be executed on each po file in the repo.Can I achieve this somehow?
Beta Was this translation helpful? Give feedback.
All reactions