diff --git a/MANIFEST.IN b/MANIFEST.IN index f30e5b2..9531985 100644 --- a/MANIFEST.IN +++ b/MANIFEST.IN @@ -1 +1,2 @@ -include src/pyutils.h \ No newline at end of file +include src/pyutils.h +include install_libpostal.sh \ No newline at end of file diff --git a/install_libpostal.sh b/install_libpostal.sh index 91c0fe2..62c276b 100755 --- a/install_libpostal.sh +++ b/install_libpostal.sh @@ -1,6 +1,7 @@ #!/bin/bash OS=$(uname -s) +ARCH=$(uname -m) case $OS in Linux) @@ -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 diff --git a/wheelhouse/libpypostal-1.1.0-cp38-cp38-macosx_11_0_arm64.whl b/wheelhouse/libpypostal-1.1.0-cp38-cp38-macosx_11_0_arm64.whl new file mode 100644 index 0000000..29b780d Binary files /dev/null and b/wheelhouse/libpypostal-1.1.0-cp38-cp38-macosx_11_0_arm64.whl differ