Skip to content

Commit

Permalink
build libpostal build
Browse files Browse the repository at this point in the history
  • Loading branch information
gmweaver committed Jun 5, 2024
1 parent e6fa8bb commit 006bd11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.IN
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include src/pyutils.h
include src/pyutils.h
include install_libpostal.sh
7 changes: 6 additions & 1 deletion install_libpostal.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

OS=$(uname -s)
ARCH=$(uname -m)

case $OS in
Linux)
Expand All @@ -24,7 +25,11 @@ esac
if [ "$OS" = "Linux" ]; then
sudo apt-get install clang curl autoconf automake libtool pkg-config
elif [ "$OS" = "Darwin" ]; then
brew install automake curl autoconf automake libtool pkg-config
if [ "$ARCH" == *"x86"* ]; then
brew install automake curl autoconf automake libtool pkg-config
elif [ "$ARCH" == *"arm"* ]; then
arch -arm64 brew install automake curl autoconf automake libtool pkg-config
fi
fi

cd $1
Expand Down
Binary file not shown.

0 comments on commit 006bd11

Please sign in to comment.