Python app formula dependencies #1150
-
Hi folks - hopefully a simple question regarding python packaging for my CLI app (not a library). Do I specify dependencies for each supported python version? Or do I need to pin to a specific python version in Homebrew? Reading the docs, it seems I can only specify a single URL/SHA256 for each dependency, yet wheels are built for each os/arch/python, and thus have a different SHA256. I cannot use tarballs as numpy takes forever to install when it's not a binary. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It's simpler to stick to a specific Python version. If you want to support multiple Python versions, you can either:
Note that formulae with options are not accepted in homebrew/core (in case you plan to submit it), but you're free to host one in your own tap. You can look at the docs and the Git logs for examples of how to make use of options.
Why not use the Homebrew numpy formula? |
Beta Was this translation helpful? Give feedback.
It's simpler to stick to a specific Python version. If you want to support multiple Python versions, you can either:
Note that formulae with options are not accepted in homebrew/core (in case you plan to submit it), but you're free to host one in your own tap. You can look at the docs and the Git logs for examples of how to make use of options.
Why not use the Homebrew numpy formula?