-
Notifications
You must be signed in to change notification settings - Fork 566
Open
Description
Issue
Homebrew installs in either a default directory (based on factors such as the macOS version installing Homebrew, the Homebrew version being installed, etc.) or a user-specified directory.
Homebrew provides a HOMEBREW_PREFIX
environment variable in order to locate where it's installed.
While setup.py takes a few guesses as to where Homebrew is located (setup.py#L213-L219), it does not use the environment variable which is likely to have the location:
Lines 213 to 219 in 7b4e277
# Add directories for MacPorts and Homebrew. | |
dirs = [ | |
'/usr/local/include', | |
'/opt/local/include', | |
'/opt/homebrew/include', | |
expanduser('~/homebrew/include'), | |
] |
If the user installed Homebrew in a user-specified directory, setup.py is not able to find Homebrew and fails to run.
Metadata
Metadata
Assignees
Labels
No labels