Skip to content

Commit

Permalink
Remove setup.py install in PythonInstall process.
Browse files Browse the repository at this point in the history
  • Loading branch information
dingye18 committed Aug 27, 2024
1 parent 04603ac commit c4c21a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/OpenMMDeepmdPlugin DESTINATION ${CMAKE_CUR
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OpenMMDeepmdPlugin/__init__.py ${CMAKE_CURRENT_BINARY_DIR}/OpenMMDeepmdPlugin/__init__.py)
add_custom_command(TARGET PythonInstall
COMMAND "${PYTHON_EXECUTABLE}" setup.py build
COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/OpenMMDeepmdPlugin.py ${CMAKE_CURRENT_BINARY_DIR}/OpenMMDeepmdPlugin
COMMAND "${PYTHON_EXECUTABLE}" setup.py install
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/OpenMMDeepmdPlugin.py ${CMAKE_CURRENT_BINARY_DIR}/OpenMMDeepmdPlugin
COMMAND "${PYTHON_EXECUTABLE}" -m pip install .
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)

0 comments on commit c4c21a6

Please sign in to comment.