Browse Source

fix(build): make develep happy

GitOrigin-RevId: ab6e6bc825
master
Megvii Engine Team 2 years ago
parent
commit
841bfe9272
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      CMakeLists.txt
  2. +1
    -1
      scripts/whl/BUILD_PYTHON_WHL_README.md

+ 2
- 1
CMakeLists.txt View File

@@ -1396,8 +1396,9 @@ if(TARGET _imperative_rt)
${CMAKE_COMMAND} -E create_symlink
${CMAKE_CURRENT_BINARY_DIR}/src/$<TARGET_FILE_NAME:${MGE_SHARED_LIB}>
${CMAKE_CURRENT_SOURCE_DIR}/imperative/python/${PACKAGE_NAME}/core/lib/$<TARGET_FILE_NAME:${MGE_SHARED_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


+ 1
- 1
scripts/whl/BUILD_PYTHON_WHL_README.md View File

@@ -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 `

Loading…
Cancel
Save