This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 0115d97314 [INLONG-10789][SDK] Update build script for the python
dataproxy sdk (#10790)
0115d97314 is described below
commit 0115d973148175ebf17c3c6c58f0cde39bf9e86d
Author: yfsn666 <[email protected]>
AuthorDate: Thu Aug 15 11:03:43 2024 +0800
[INLONG-10789][SDK] Update build script for the python dataproxy sdk
(#10790)
---
inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-python/build.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-python/build.sh
b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-python/build.sh
index 946ac6f724..1b5bf1ed0e 100755
--- a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-python/build.sh
+++ b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-python/build.sh
@@ -58,8 +58,10 @@ make check -j 4
# Build dataproxy-sdk-cpp(If the dataproxy-sdk-cpp has been compiled, this
step will be skipped)
if [ ! -e "$CPP_SDK_DIR/release/lib/dataproxy_sdk.a" ]; then
+ chmod +x $CPP_SDK_DIR/build_third_party.sh
chmod +x $CPP_SDK_DIR/build.sh
cd $CPP_SDK_DIR
+ . $CPP_SDK_DIR/build_third_party.sh
. $CPP_SDK_DIR/build.sh
cp -r $CPP_SDK_DIR $PY_SDK_DIR
else
@@ -82,4 +84,6 @@ SITE_PACKAGES_DIR=$(python -c "import site;
print(site.getsitepackages()[0])")
find $PY_SDK_DIR/build -name "*.so" -print0 | xargs -0 -I {} bash -c 'rm -f
$0/$1; cp $1 $0' $SITE_PACKAGES_DIR {}
# Clean
-rm -r $PY_SDK_DIR/pybind11 $PY_SDK_DIR/dataproxy-sdk-cpp
\ No newline at end of file
+rm -r $PY_SDK_DIR/pybind11 $PY_SDK_DIR/dataproxy-sdk-cpp
+
+echo "Build Python SDK successfully"
\ No newline at end of file