Open memsharded opened 6 days ago
Thanks! My customers are trying to achieve this in different ways, and they often suffer.
The approach people often use is to force something in configure()
. Also, they often use the old self.options["mp-units"].cxx_modules = True
or mp-units:cxx_modules=True
as, despite them being deprecated, they can still easily be Googled in some blogs or StackOverlfow. If you will ask ChatGPT it will provide plenty of invalid answers:
This is why a good page that will be easy to find is really needed here. It should discuss and compare various options of doing it:
I'll can second what @mpusz said. In addition, I would suggest to add a few lines on pros/cons of certain approaches (e.g., I was not aware that the configure way prevents users from overriding the values, which per say I don't see as nothing strictly bad/good, as it depends on what one wants to achieve. However, it should be easy for an author to judge what pattern is needed/wanted.). Furthermore, maybe a note on the ordering/precedence different ways have would also be helpful.
It is a bit difficult to see best practices around using and defining options.
self.dependencies
notself.options["dependency"]
Feedback by @mpusz