← All tasks
pythonmkleehammer/pyodbc #1211Not a task: not reproduced

setup.py doesn't use `HOMEBREW_PREFIX` to find Homebrew (sometimes it can't find it)

envgap__mkleehammer__pyodbc-1211

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
8734a0e2f56575b2859abc0c7015cf083a08033d
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

mkleehammer/pyodbc #1211 · read the original issue
### 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:



https://github.com/mkleehammer/pyodbc/blob/7b4e27781c7f1b75995ecca73d3018c929f4adef/setup.py#L213-L219



[setup.py#L213-L219]:

https://github.com/mkleehammer/pyodbc/blob/7b4e27781c7f1b75995ecca73d3018c929f4adef/setup.py#L213-L219



If the user installed Homebrew in a user-specified directory, setup.py is not able to find Homebrew and fails to run.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]