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

Remove all usages of makefile for scala #14013

Merged
merged 4 commits into from
Feb 4, 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
5 changes: 3 additions & 2 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,9 @@ unittest_ubuntu_cpu_clojure() {

unittest_ubuntu_cpu_clojure_integration() {
set -ex
make scalapkg USE_OPENCV=1 USE_BLAS=openblas USE_DIST_KVSTORE=1 ENABLE_TESTCOVERAGE=1
make scalainstall USE_OPENCV=1 USE_BLAS=openblas USE_DIST_KVSTORE=1 ENABLE_TESTCOVERAGE=1
cd scala-package
mvn install
cd ..
./contrib/clojure-package/integration-tests.sh
}

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfiles/Dockerfile.in.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
COPY install/scala.sh install/
RUN install/scala.sh

RUN cd mxnet && make scalapkg $BUILD_OPTS
RUN cd mxnet/scala-package && mvn package
1 change: 0 additions & 1 deletion docs/install/java_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ The previously mentioned setup with Maven is recommended. Otherwise, the followi
If you have already built MXNet **from source** and are looking to setup Java from that point, you may simply run the following from the MXNet `scala-package` folder:

```
mvn package
mvn install
```
This will install both the Java Inference API and the required MXNet-Scala package.
Expand Down
5 changes: 2 additions & 3 deletions docs/install/scala_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@ The previously mentioned setup with Maven is recommended. Otherwise, the followi


#### Build Scala from an Existing MXNet Installation
If you have already built MXNet **from source** and are looking to setup Scala from that point, you may simply run the following from the MXNet source root:
If you have already built MXNet **from source** and are looking to setup Scala from that point, you may simply run the following from the MXNet `scala-package` folder:

```
make scalapkg
make scalainstall
mvn install
```

<hr>
Expand Down
3 changes: 1 addition & 2 deletions docs/mxdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def build_r_docs(app):

def build_scala(app):
"""build scala for scala docs, java docs, and clojure docs to use"""
_run_cmd("cd %s/.. && make scalapkg" % app.builder.srcdir)
_run_cmd("cd %s/.. && make scalainstall" % app.builder.srcdir)
_run_cmd("cd %s/.. && mvn install -DskipTests" % app.builder.srcdir)
zachgk marked this conversation as resolved.
Show resolved Hide resolved

def build_scala_docs(app):
"""build scala doc and then move the outdir"""
Expand Down