casacore / python-casacore

Python bindings for casacore, a library used in radio astronomy
http://casacore.github.io/python-casacore
GNU Lesser General Public License v3.0
35 stars 22 forks source link

Explicitly add Homebrew libs to support Apple M1 #253

Closed ludwigschwardt closed 10 months ago

ludwigschwardt commented 10 months ago

In the grand old days, Homebrew installed to /usr/local and all was well. Now, however, while Intel Homebrew still does this, Apple Silicon / M1 / M2 Homebrew has gone and picked a new prefix: /opt/homebrew. A good explanation of the rationale is at https://earthly.dev/blog/homebrew-on-m1/. Basically, Homebrew had to admit that Fink and MacPorts were right. 😛

The solution is to call brew --prefix and add those libraries explicitly to the search list. Keep going if brew is not installed.

This addresses #252.

tammojan commented 10 months ago

Nice, thanks.