Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Julia path patch #15561

Merged
merged 3 commits into from
Jul 18, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,16 @@ test_ubuntu_cpu_python3() {
build_docs() {
set -ex
pushd .

# Setup environment for Julia docs
export PATH="/work/julia10/bin:$PATH"
export MXNET_HOME='/work/mxnet'
export JULIA_DEPOT_PATH='/work/julia-depot'

julia -e 'using InteractiveUtils; versioninfo()'
export LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libjemalloc.so'
export LD_LIBRARY_PATH=/work/mxnet/lib:$LD_LIBRARY_PATH

cd /work/mxnet/docs/build_version_doc
# Parameters are set in the Jenkins pipeline: restricted-website-build
# $1: the list of branches/tags to build
Expand Down
11 changes: 0 additions & 11 deletions docs/build_version_doc/build_all_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ set -x
# Set OPTS to any Sphinx build options, like -W for "warnings as errors"
OPTS=

# Setup environment for Julia docs
export PATH="$1/bin:$PATH"
export MXNET_HOME='/work/mxnet'
export JULIA_DEPOT_PATH='/work/julia-depot'
export INTEGRATION_TEST=1

julia -e 'using InteractiveUtils; versioninfo()'
export LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libjemalloc.so'
export LD_LIBRARY_PATH=/work/mxnet/lib:$LD_LIBRARY_PATH


# $1 is the list of branches/tags to build
if [ -z "$1" ]
then
Expand Down
2 changes: 2 additions & 0 deletions docs/mxdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def build_mxnet(app):

def build_julia_docs(app):
"""build Julia docs"""
os.environ['MXNET_HOME'] = str(os.path.abspath('{}/..'.format(app.builder.srcdir)))
aaronmarkham marked this conversation as resolved.
Show resolved Hide resolved
print("Julia will check for MXNet in {}/lib".format(os.environ.get('MXNET_HOME')))
dest_path = app.builder.outdir + '/api/julia/site'
_run_cmd('cd {}/.. && make -C julia/docs'.format(app.builder.srcdir))
_run_cmd('mkdir -p {}'.format(dest_path))
Expand Down