Skip to content

Commit

Permalink
Change the third-party dependency pybind11 to a submodule (PaddlePadd…
Browse files Browse the repository at this point in the history
  • Loading branch information
weishengying authored Mar 31, 2022
1 parent 5dc7549 commit bfe955d
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "third-party/glog"]
path = third-party/glog
url = https://github.com/google/glog.git
[submodule "third-party/pybind"]
path = third-party/pybind
url = https://github.com/pybind/pybind11.git
10 changes: 5 additions & 5 deletions cmake/external/pybind11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ endif()

include(ExternalProject)

set(PYBIND_SOURCE_DIR ${THIRD_PARTY_PATH}/pybind)
set(PYBIND_SOURCE_DIR ${CMAKE_SOURCE_DIR}/third-party/pybind)

include_directories(${PYBIND_SOURCE_DIR}/src/extern_pybind/include)
include_directories(${PYBIND_SOURCE_DIR}/include)

ExternalProject_Add(
extern_pybind
${EXTERNAL_PROJECT_LOG_ARGS}
GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
GIT_TAG "v2.6.0"
PREFIX ${PYBIND_SOURCE_DIR}
GIT_REPOSITORY ""
GIT_TAG 8de7772cc72daca8e947b79b83fea46214931604
SOURCE_DIR ${PYBIND_SOURCE_DIR}
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down
2 changes: 1 addition & 1 deletion lite/tools/build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ readonly NUM_PROC=${LITE_BUILD_THREADS:-4}
#####################################################################################################
# url that stores third-party tar.gz file to accelerate third-party lib installation
readonly THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
readonly THIRDPARTY_TAR=third-party-801f670.tar.gz
readonly THIRDPARTY_TAR=third-party-91a9ab3.tar.gz

# absolute path of Paddle-Lite.
readonly workspace=$PWD/$(dirname $0)/../../
Expand Down
2 changes: 1 addition & 1 deletion lite/tools/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ readonly NUM_PROC=${LITE_BUILD_THREADS:-4}
#####################################################################################################
# url that stores third-party tar.gz file to accelerate third-party lib installation
readonly THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
readonly THIRDPARTY_TAR=third-party-801f670.tar.gz
readonly THIRDPARTY_TAR=third-party-91a9ab3.tar.gz

# on mac environment, we should expand the maximum file num to compile successfully
os_name=`uname -s`
Expand Down
2 changes: 1 addition & 1 deletion lite/tools/build_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set ARCH=""
set WITH_STRIP=OFF
set OPTMODEL_DIR=""
set THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
set THIRDPARTY_TAR=third-party-801f670.tar.gz
set THIRDPARTY_TAR=third-party-91a9ab3.tar.gz

set workspace=%source_path%
set /a cores=%number_of_processors%-2 > null
Expand Down
2 changes: 1 addition & 1 deletion lite/tools/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readonly common_flags="-DWITH_PYTHON=OFF -DWITH_TESTING=ON -DLITE_WITH_ARM=OFF"

# url that stores third-party tar.gz file to accelerate third-party lib installation
readonly THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
readonly THIRDPARTY_TAR=third-party-801f670.tar.gz
readonly THIRDPARTY_TAR=third-party-91a9ab3.tar.gz

readonly workspace=$PWD

Expand Down
2 changes: 1 addition & 1 deletion lite/tools/ci_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LITE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../" && pwd)"

# url that stores third-party tar.gz file to accelerate third-party lib installation
readonly THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
readonly THIRDPARTY_TAR=third-party-801f670.tar.gz
readonly THIRDPARTY_TAR=third-party-91a9ab3.tar.gz
readonly workspace=$PWD

NUM_CORES_FOR_COMPILE=${LITE_BUILD_THREADS:-8}
Expand Down
1 change: 1 addition & 0 deletions third-party/pybind
Submodule pybind added at 59a2ac
2 changes: 1 addition & 1 deletion tools/ci_tools/ci_nn_accelerators_unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LITE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../" && pwd)"

# url that stores third-party tar.gz file to accelerate third-party lib installation
readonly THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
readonly THIRDPARTY_TAR=third-party-801f670.tar.gz
readonly THIRDPARTY_TAR=third-party-91a9ab3.tar.gz
readonly workspace=$PWD

NUM_CORES_FOR_COMPILE=${LITE_BUILD_THREADS:-8}
Expand Down
2 changes: 1 addition & 1 deletion tools/ci_tools/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OFF_COLOR='\E[0m' # off color

# URL that stores third-party tar.gz file to accelerate third-party lib installation
readonly THIRDPARTY_URL=https://paddlelite-data.bj.bcebos.com/third_party_libs/
readonly THIRDPARTY_TAR=third-party-801f670.tar.gz
readonly THIRDPARTY_TAR=third-party-91a9ab3.tar.gz

# wget wrapper for download file from Baidu bcebos
function wget_wrapper() {
Expand Down

0 comments on commit bfe955d

Please sign in to comment.