https://github.com/Homebrew/brew/blob/master/docs/Python-for-Formula-Authors.md#installing
# Install virtualenvwrapper
brew install python
python -m pip install virtualenvwrapper
source $(brew --prefix)/bin/virtualenvwrapper.sh
# Set up a temporary virtual environment
mktmpenv
# Install the package of interest as well as homebrew-pypi-poet
pip install some_package homebrew-pypi-poet
poet some_package
# Destroy the temporary virtualenv you just created
deactivate