Skip to content

Commit

Permalink
fix python client build on ARM64
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Sep 20, 2022
1 parent e0d465a commit 5b4f148
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<packaging>pom</packaging>

<properties>
<pythonClientBuildArch>x86_84</pythonClientBuildArch>
<skipBuildPythonClient>false</skipBuildPythonClient>
<skipCopyPythonClients>false</skipCopyPythonClients>
</properties>
Expand Down Expand Up @@ -79,7 +80,7 @@
<executable>${project.basedir}/../../pulsar-client-cpp/docker/build-wheels.sh</executable>
<arguments>
<!-- build python 3.8 -->
<argument>3.8 cp38-cp38 manylinux2014 x86_64</argument>
<argument>3.8 cp38-cp38 manylinux2014 ${pythonClientBuildArch}</argument>
</arguments>
</configuration>
</execution>
Expand Down
4 changes: 4 additions & 0 deletions docker/pulsar/scripts/install-pulsar-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ set -x
PYTHON_MAJOR_MINOR=$(python3 -V | sed -E 's/.* ([[:digit:]]+)\.([[:digit:]]+).*/\1\2/')
WHEEL_FILE=$(ls /pulsar/pulsar-client | grep "cp${PYTHON_MAJOR_MINOR}")
pip3 install /pulsar/pulsar-client/${WHEEL_FILE}[all]

# TODO: remove these lines once grpcio doesn't need to compile from source on ARM64 platform
apt update
apt -y install build-essential python3-dev

0 comments on commit 5b4f148

Please sign in to comment.