From bd7b4963b4322628dc77877fdf0a89f703d64816 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Thu, 27 Sep 2018 16:50:18 +0800 Subject: [PATCH] Add python3 build script --- doc/fluid/advanced_usage/development/contribute_to_paddle.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/fluid/advanced_usage/development/contribute_to_paddle.md b/doc/fluid/advanced_usage/development/contribute_to_paddle.md index 49ca5b2e6..dc2a964e6 100644 --- a/doc/fluid/advanced_usage/development/contribute_to_paddle.md +++ b/doc/fluid/advanced_usage/development/contribute_to_paddle.md @@ -56,6 +56,10 @@ Changes not staged for commit: 随后可以用这个开发镜像开始build PaddlePaddle的源码。比如如果要build一个不依赖GPU,但是支持AVX指令集,并且包括unit tests的PaddlePaddle,可以: ```bash ➜ docker run -v $(pwd):/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TESTING=ON" paddle:latest-dev +``` + 如果你需要在此基础上编译基于Python3的PaddlePaddle,可以: + ```bash +➜ docker run -v $(pwd):/paddle -e "PY_VERSION=3.5" -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "WITH_TESTING=ON" paddle:latest-dev ``` 这个过程除了编译PaddlePaddle为 `./build/libpaddle.so`,并且输出一个 `./build/paddle.deb`文件之外,还会输出一个 `build/Dockerfile`。我们只需要运行下面命令把编译好的PaddlePaddle打包成一个*生产镜像*(`paddle:prod`): ```bash -- GitLab