Skip to content

Drop support for macos and add so files directly to repo#1

Open
youngcho22 wants to merge 8 commits intoib-bazelfrom
ib-bazel-dev
Open

Drop support for macos and add so files directly to repo#1
youngcho22 wants to merge 8 commits intoib-bazelfrom
ib-bazel-dev

Conversation

@youngcho22
Copy link
Copy Markdown

NOTE: What this PR does is HORRIBLE! It's only a tentative solution to "somewhat" hermetically build python-magic which requires libmagic.

Background

python-magic requires libmagic to be installed on the host machine. It was challenging to hermetically build libmagic using bazel (due to various reasons such as properly setting LD_LIBRARY_PATH), so as a tentative solution to bundle libamgic into python-magic, I directly added sh files into the workspace.

Also, the support for macos users is dropped, as they can install libmagic separately on their system. The reason for the drop is because python-magic does a static look-up for finding libmagic, which isn't compatible with Bazel, hence, dropped.

Test

On Linux,

bazel test  --test_env LC_ALL=en_US.UTF-8 --test_output=errors //test/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants