3 ms·
Yes but there are multiple versioned formulae.
by mikemcquaid 3y ago
Yes but there are multiple versioned formulae.
- godelski 3y agoThanks for taking the time. Can you help me understand? Because I didn't get this from the devs. Just looking at a random formula, am I correct to understand that this will use python 3.10 and NOT 3.12?[0] I understand ones like this[1] where there's a note about the issue with newer versions. What I'm trying to understand is if the python version is specified by the formula or it will default to the newest version. If it requires it to be specified in the formula then doesn't this make it contingent on the maintainer upgrading it every python version? I didn't verify [0], but it looks like it should work with later versions of python, and it it is still using 3.10 then isn't that essentially the maintainers "fault?" Because that's my concern. I can't see how something like this stays updated when it requires a maintainer to update. Seems better to have a >=3.10 and then do ==3.10 if only 3.10 works (odd) or >=3.10 <3.12 if it works for 10 and 11 but not 12. Especially since formulas are often made by people that are not the package developers themselves and we're just reliant upon someone keeping up. I'd rather break upon a new version than have many old pythons installed. I know there's no perfect solution, but we're talking about failure modes. And fwiw, I'd rather it try to use the system or environment python rather than installing a unique version. It just gets confusing when you need to add dependencies for optional stuff that wasn't included in the formula and is extremely non-obvious to a new user. [0] https://github.com/Homebrew/homebrew-core/blob/12a0f6bbbeda84dcae97419bab46c99ef61529b5/Formula/c/coin3d.rb#L40 https://github.com/Homebrew/homebrew-core/blob/12a0f6bbbeda8... [1] https://github.com/Homebrew/homebrew-core/blob/12a0f6bbbeda84dcae97419bab46c99ef61529b5/Formula/b/binwalk.rb#L37 https://github.com/Homebrew/homebrew-core/blob/12a0f6bbbeda8...
- mikemcquaid 3y agoYes you have to use the package version in the formula. Yes all python formulae will be moved to a newer version eventually. The other versions are for human consumption and use with tools like ‘brew pyenv-sync’. (I am a Homebrew maintainer).