Skip to content

Add support for finding libmagic install by brew on Apple Silicon #24

@tdruez

Description

@tdruez

From https://github.com/Homebrew/brew/blob/master/docs/Installation.md#installation

This script installs Homebrew to its preferred prefix (/usr/local for macOS Intel, /opt/homebrew for Apple Silicon and /home/linuxbrew/.linuxbrew for Linux)

We only need to add a glob after https://github.com/nexB/typecode/blob/main/src/typecode/magic2.py#L128

glob.glob('/opt/homebrew/Cellar/libmagic/*/lib/libmagic.dylib')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions