Skip to content

Commit f22da58

Browse files
luotao1wangkuiyi
authored andcommitted
fix compiler error in paddle:latest-dev image (#9907)
1 parent 9291302 commit f22da58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
file(GLOB UTILS_PY_FILES . ./paddle/utils/*.py)
2-
file(GLOB_RECURSE FLUID_PY_FILES ./paddle/fluid/ *.py)
2+
file(GLOB_RECURSE FLUID_PY_FILES ./paddle/fluid/*.py)
33
set(PY_FILES paddle/__init__.py
44
${UTILS_PY_FILES}
55
${FLUID_PY_FILES})
66

77
if(NOT WITH_FLUID_ONLY)
88
file(GLOB TRAINER_PY_FILES . ./paddle/trainer/*.py)
99
file(GLOB HELPERS_PY_FILES . ./paddle/trainer_config_helpers/*.py)
10-
file(GLOB_RECURSE V2_PY_FILES ./paddle/v2/ *.py)
10+
file(GLOB_RECURSE V2_PY_FILES ./paddle/v2/*.py)
1111
set(PY_FILES ${PY_FILES}
1212
${TRAINER_PY_FILES}
1313
${HELPERS_PY_FILES}
@@ -55,7 +55,7 @@ add_custom_target(copy_paddle_pybind ALL DEPENDS ${PADDLE_BINARY_DIR}/python/pad
5555

5656
add_custom_command(OUTPUT ${PADDLE_PYTHON_BUILD_DIR}/.timestamp
5757
COMMAND touch stub.cc
58-
COMMAND ${CMAKE_COMMAND} -E copy_directory ${PADDLE_SOURCE_DIR}/python/paddle ${PADDLE_BINARY_DIR}/python/paddle
58+
COMMAND cp -r ${PADDLE_SOURCE_DIR}/python/paddle ${PADDLE_BINARY_DIR}/python
5959
COMMAND cp -r ${PADDLE_SOURCE_DIR}/paddle/py_paddle ${PADDLE_BINARY_DIR}/python/
6060
COMMAND env ${py_env} ${PYTHON_EXECUTABLE} setup.py bdist_wheel
6161
COMMAND ${CMAKE_COMMAND} -E touch ${PADDLE_PYTHON_BUILD_DIR}/.timestamp

0 commit comments

Comments
 (0)