From 841bfe9272e14a1ae2a03f3381c5910f45f6012a Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Tue, 8 Nov 2022 17:05:44 +0800 Subject: [PATCH] fix(build): make develep happy GitOrigin-RevId: ab6e6bc8250bf89f54d5dcf838c9a943bdf25edf --- CMakeLists.txt | 3 ++- scripts/whl/BUILD_PYTHON_WHL_README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af6dfc53..b9270dc6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1396,8 +1396,9 @@ if(TARGET _imperative_rt) ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_BINARY_DIR}/src/$ ${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/lib/$ - DEPENDS _imperative_rt + DEPENDS ${develop_depends} VERBATIM) + add_dependencies(develop _imperative_rt) endif() # Configure and install pkg-config. Note that unlike the Config.cmake modules, this is diff --git a/scripts/whl/BUILD_PYTHON_WHL_README.md b/scripts/whl/BUILD_PYTHON_WHL_README.md index daa8ba4d..9bfdc265 100755 --- a/scripts/whl/BUILD_PYTHON_WHL_README.md +++ b/scripts/whl/BUILD_PYTHON_WHL_README.md @@ -98,4 +98,4 @@ If you do not want to create whl file when debug Python3 binding, you can call ` * cuda with `RelWithDebInfo` mode: `EXTRA_CMAKE_ARGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo" scripts/cmake-build/host_build.sh -c -t` * cpu only with `RelWithDebInfo` mode: `EXTRA_CMAKE_ARGS="-DCMAKE_BUILD_TYPE=RelWithDebInfo" scripts/cmake-build/host_build.sh -t` -Start `Python3 ` with env for support `MegEngine` after build: `PYTHONPATH=imperative/python:python_module:$PYTHONPATH python3 ` +Start `Python3 ` with env for support `MegEngine` after build: `PYTHONPATH=imperative/python:$PYTHONPATH python3 `