未验证 提交 6dc881e9 编写于 作者: S Sing_chan 提交者: GitHub

fix bug of ps_py_proto cant find path for the folder not created (#41793)

上级 7e7d2300
...@@ -4,6 +4,7 @@ if(WITH_PYTHON) ...@@ -4,6 +4,7 @@ if(WITH_PYTHON)
py_proto_compile(ps_py_proto SRCS the_one_ps.proto) py_proto_compile(ps_py_proto SRCS the_one_ps.proto)
add_custom_target(ps_py_proto_init ALL add_custom_target(ps_py_proto_init ALL
COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto) COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto)
add_dependencies(ps_py_proto ps_py_proto_init)
if (NOT WIN32) if (NOT WIN32)
add_custom_command(TARGET ps_py_proto POST_BUILD add_custom_command(TARGET ps_py_proto POST_BUILD
COMMAND mv the_one_ps_pb2.py ${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto/) COMMAND mv the_one_ps_pb2.py ${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto/)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册