brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Language::Python::Virtualenv#needs_python?

Returns true if a formula option for the specified python is currently
active or if the specified python is required by the formula. Valid
inputs are "python", "python3", :python, and :python3. Note that
"with-python", "without-python", "with-python3", and "without-python3"
formula options are handled correctly even if not associated with any
corresponding depends_on statement.

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/language/python.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Language--Python--Virtualenv-needs_python--for-pr


# Commit to git

git add Library/Homebrew/language/python.rbgit commit -m "better docs for Language::Python::Virtualenv#needs_python?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Language--Python--Virtualenv-needs_python--for-pr

hub pull-request


# Celebrate!