Skip to content

Commit 0875ccb

Browse files
authored
Merge pull request #11968 from typhoonzero/mac_releasing_doc
Add releasing for mac
2 parents 52948a0 + 94bc25d commit 0875ccb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/fluid/dev/releasing_process_en.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,33 @@ pop-up box, choose the current release branch and click "Run Build" button. You
5050
* pypi does not allow overwrite the already uploaded version of wheel package, even if you delete the
5151
old version. you must change the version number before upload a new one.
5252
53+
### Publish wheel Packages for MacOS
54+
55+
You need to build the binary wheel package for MacOS before publishing, to
56+
make sure that the package can be used by many versions of MacOS
57+
(10.11, 10.12, 10.13) and different python installs (python.org, homebrew, etc.),
58+
you must build the package ***exactly*** following below steps:
59+
60+
Build steps:
61+
62+
1. install python from python.org downloads, and make sure it's currently in use
63+
in your system.
64+
1. `export MACOSX_DEPLOYMENT_TARGET=10.11`, use `10.11` is enough for recent versions.
65+
1. `git clone https://github.com/PaddlePaddle/Paddle.git && cd Paddle && mkdir build && cd build`
66+
1. `cmake -DWITH_GPU=OFF -DWITH_MKL=OFF -DWITH_SYSTEM_BLAS=OFF ..`, make sure the output of `cmake` command is using the correct python interpreter installed from python.org
67+
1. `make -j`
68+
1. `pip install delocate`
69+
1. `mkdir fixed_wheel && delocate-wheel -w fixed_wheel python/dist/*.whl`
70+
71+
Then the whl under `fixed_wheel` is ready to upload.
72+
73+
Install steps:
74+
75+
1. run `pip install paddlepaddle...whl`
76+
1. find the `libpython.dylib` that are currently in use:
77+
- for python.org package installs, do nothing.
78+
- for other python installs, find the path of `libpython*.dylib` and `export LD_LIBRARY_PATH=you path && DYLD_LIBRARY_PATH=your path`
79+
5380
## Publish Docker Images
5481
5582
Our CI tool will push latest images to DockerHub, so we only need to push a version tag like:

0 commit comments

Comments
 (0)