Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f7fa7c57
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f7fa7c57
编写于
2月 24, 2018
作者:
L
Luo Tao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify related build code after the move
上级
b11956a0
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
13 addition
and
11 deletion
+13
-11
python/CMakeLists.txt
python/CMakeLists.txt
+7
-5
python/setup.py.in
python/setup.py.in
+6
-6
未找到文件。
python/CMakeLists.txt
浏览文件 @
f7fa7c57
...
@@ -3,12 +3,14 @@ file(GLOB TRAINER_PY_FILES . ./paddle/trainer/*.py)
...
@@ -3,12 +3,14 @@ file(GLOB TRAINER_PY_FILES . ./paddle/trainer/*.py)
file
(
GLOB HELPERS_PY_FILES . ./paddle/trainer_config_helpers/*.py
)
file
(
GLOB HELPERS_PY_FILES . ./paddle/trainer_config_helpers/*.py
)
file
(
GLOB UTILS_PY_FILES . ./paddle/utils/*.py
)
file
(
GLOB UTILS_PY_FILES . ./paddle/utils/*.py
)
file
(
GLOB_RECURSE V2_PY_FILES ./paddle/v2/ *.py
)
file
(
GLOB_RECURSE V2_PY_FILES ./paddle/v2/ *.py
)
file
(
GLOB_RECURSE FLUID_PY_FILES ./paddle/fluid/ *.py
)
set
(
PY_FILES paddle/__init__.py
set
(
PY_FILES paddle/__init__.py
${
TRAINER_PY_FILES
}
${
TRAINER_PY_FILES
}
${
HELPERS_PY_FILES
}
${
HELPERS_PY_FILES
}
${
UTILS_PY_FILES
}
${
UTILS_PY_FILES
}
${
V2_PY_FILES
}
)
${
V2_PY_FILES
}
${
FLUID_PY_FILES
}
)
add_custom_target
(
copy_paddle_master
)
add_custom_target
(
copy_paddle_master
)
...
@@ -43,10 +45,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
...
@@ -43,10 +45,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py
)
${
CMAKE_CURRENT_BINARY_DIR
}
/setup.py
)
add_custom_command
(
OUTPUT
${
PADDLE_SOURCE_DIR
}
/python/paddle/
v2/
fluid/core.so
add_custom_command
(
OUTPUT
${
PADDLE_SOURCE_DIR
}
/python/paddle/fluid/core.so
COMMAND cmake -E copy $<TARGET_FILE:paddle_pybind>
${
PADDLE_SOURCE_DIR
}
/python/paddle/
v2/
fluid/core.so
COMMAND cmake -E copy $<TARGET_FILE:paddle_pybind>
${
PADDLE_SOURCE_DIR
}
/python/paddle/fluid/core.so
DEPENDS paddle_pybind
)
DEPENDS paddle_pybind
)
add_custom_target
(
copy_paddle_pybind ALL DEPENDS
${
PADDLE_SOURCE_DIR
}
/python/paddle/
v2/
fluid/core.so
)
add_custom_target
(
copy_paddle_pybind ALL DEPENDS
${
PADDLE_SOURCE_DIR
}
/python/paddle/fluid/core.so
)
add_custom_command
(
OUTPUT
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
add_custom_command
(
OUTPUT
${
PADDLE_PYTHON_BUILD_DIR
}
/.timestamp
...
@@ -72,7 +74,7 @@ if (WITH_TESTING)
...
@@ -72,7 +74,7 @@ if (WITH_TESTING)
add_subdirectory
(
paddle/v2/tests
)
add_subdirectory
(
paddle/v2/tests
)
add_subdirectory
(
paddle/v2/reader/tests
)
add_subdirectory
(
paddle/v2/reader/tests
)
add_subdirectory
(
paddle/v2/plot/tests
)
add_subdirectory
(
paddle/v2/plot/tests
)
add_subdirectory
(
paddle/
v2/
fluid/tests
)
add_subdirectory
(
paddle/fluid/tests
)
endif
()
endif
()
endif
()
endif
()
install
(
DIRECTORY
${
PADDLE_PYTHON_PACKAGE_DIR
}
install
(
DIRECTORY
${
PADDLE_PYTHON_PACKAGE_DIR
}
...
...
python/setup.py.in
浏览文件 @
f7fa7c57
...
@@ -71,9 +71,9 @@ packages=['paddle',
...
@@ -71,9 +71,9 @@ packages=['paddle',
'paddle.v2.reader',
'paddle.v2.reader',
'paddle.v2.master',
'paddle.v2.master',
'paddle.v2.plot',
'paddle.v2.plot',
'paddle.
v2.
fluid',
'paddle.fluid',
'paddle.
v2.
fluid.proto',
'paddle.fluid.proto',
'paddle.
v2.
fluid.layers',
'paddle.fluid.layers',
'py_paddle']
'py_paddle']
with open('@PADDLE_SOURCE_DIR@/python/requirements.txt') as f:
with open('@PADDLE_SOURCE_DIR@/python/requirements.txt') as f:
...
@@ -102,14 +102,14 @@ setup(name='${PACKAGE_NAME}',
...
@@ -102,14 +102,14 @@ setup(name='${PACKAGE_NAME}',
ext_modules=[Extension('_foo', ['stub.cc'])],
ext_modules=[Extension('_foo', ['stub.cc'])],
package_data={
package_data={
'paddle.v2.master': ['libpaddle_master.so'],
'paddle.v2.master': ['libpaddle_master.so'],
'paddle.
v2.
fluid': ['core.so'],
'paddle.fluid': ['core.so'],
'py_paddle':['*.py','_swig_paddle.so']
'py_paddle':['*.py','_swig_paddle.so']
},
},
package_dir={
package_dir={
'': '${CMAKE_CURRENT_SOURCE_DIR}',
'': '${CMAKE_CURRENT_SOURCE_DIR}',
# The paddle.
v2.
fluid.proto will be generated while compiling.
# The paddle.fluid.proto will be generated while compiling.
# So that package points to other directory.
# So that package points to other directory.
'paddle.
v2.
fluid.proto': '${PADDLE_BINARY_DIR}/paddle/fluid/framework',
'paddle.fluid.proto': '${PADDLE_BINARY_DIR}/paddle/fluid/framework',
'py_paddle': '${PADDLE_SOURCE_DIR}/paddle/py_paddle'
'py_paddle': '${PADDLE_SOURCE_DIR}/paddle/py_paddle'
},
},
scripts=paddle_bins,
scripts=paddle_bins,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录