Summary: | distutils-r1.eclass: Recent changes are breaking packages I maintain in the sage-on-gentoo overlay | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | François Bissey <frp.bissey> |
Component: | Eclasses | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | frp.bissey, mgorny, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
François Bissey
2022-05-04 05:03:29 UTC
The purpose of the `build` command is only to run a bunch of sub-commands: https://github.com/pypa/distutils/blob/main/distutils/command/build.py#L129 If upstream needs to add custom logic, they should be modifying the appropriate subcommands, e.g. `build_ext` rather than injecting additional steps into `build` and expecting them to be executed. You can think of it like the `all` target in Makefile. If your subtargets require extra logic, you add the appropriate logic or dependencies into the subtargets, not into `all`. If only python build system were half as well thought as makefile (and I am not saying they are the pinnacle of perfection) I/we wouldn't have those kinds of trouble. Thanks for the advice, I'll try to get upstream on board with a solution. I got upstream to accept some changes (that ultimately I wrote). It is beneficial to them as well as it simplify the build system and remove some duplication that existed previously. |