unstructured/scripts/install-paddleocr.sh
Trevor Bossert 09a0958f90
Feat: CORE-1269 - Install paddlepaddle wheel dependent on arch, supporting aarch64 (#1350)
Testing instructions

on Apple silicon

```
make docker-build
docker run -it unstructured:dev bash
python3
```
Then run the test in this PR
https://unstructured-ai.atlassian.net/browse/CORE-1269

You should get output like shown in ticket

Run the same process on your local machine (not inside docker) with same
test to verify the non aarch64 paddlepaddle got installed correctly

---------

Co-authored-by: Yuming Long <63475068+yuming-long@users.noreply.github.com>
2023-09-15 17:05:48 -07:00

10 lines
251 B
Bash
Executable File

#!/usr/bin/env bash
# aarch64 requires a custom build of paddlepaddle
if [ "${ARCH}" = "aarch64" ]; then
python3 -m pip install unstructured.paddlepaddle;
else
python3 -m pip install paddlepaddle;
fi
python3 -m pip install unstructured.paddleocr