Am I correct in assuming that `[python.resolves_to...
# general
h
Am I correct in assuming that
[python.resolves_to_no_binary]
cannot differentiate based on platform? I have a dependency with a broken binary on one platform, but not on others, so I'd like to build from source on that platform only.
h
That is correct. You might be able to do something with a custom
pants.<platform>.toml
but you would have to run with
--pants-config-files=pants.<platform>.toml
on that platform
Is the bad platform one you have tight control over, such as a CI environment?
If it is then you could change the config locally in a
.pants.rc
h
Hm I see that's interesting. The bad platform is both CI and the OS of a bunch of end-users, so no complete control.
We're considering releasing a patched wheel for the offending platform on our local pypi.
h
Alas, that might be the best solution. However this is an interesting use case for the new Python backend, which is supposed to be all about making it easy to run on different parts of the codebase with different config. So I could imagine a similar thing for different platforms. E.g.,
pants.linux_aarch64.toml
only applies on that platform.
I will add a mention there
h
Thanks a lot! I'll be tracking the conversation.