Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/distro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamillo Lugaresi <camillol@google.com>2018-01-22 05:31:31 +0300
committerCamillo Lugaresi <camillol@google.com>2018-01-22 05:31:31 +0300
commit4571847cbf749e9caff6c6f1ad3cd6777b04d4e7 (patch)
tree174902412cb39a3d0cf49baec26e9a6b394dd4ef
parent20e523771377568841e9d11bc3275a4404edcd1e (diff)
Add Moses dependency
The distro is missing the Moses package, and the included version of luarocks is unable to download it, so installation fails. This patch fixes the issue by adding a submodule for moses and installing it before nn.
-rw-r--r--.gitmodules3
m---------extra/moses0
-rwxr-xr-xinstall.sh1
3 files changed, 4 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 33f2763..e0b8950 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -82,3 +82,6 @@
[submodule "extra/lua-cjson"]
path = extra/lua-cjson
url = https://github.com/mpx/lua-cjson
+[submodule "extra/moses"]
+ path = extra/moses
+ url = https://github.com/Yonaba/Moses.git
diff --git a/extra/moses b/extra/moses
new file mode 160000
+Subproject ded0a9b773bb78ded2c1dd5da721bbee4a3e32c
diff --git a/install.sh b/install.sh
index 788a8b7..ad65434 100755
--- a/install.sh
+++ b/install.sh
@@ -122,6 +122,7 @@ cd ${THIS_DIR}/pkg/dok && $PREFIX/bin/luarocks make rocks/dok-scm-1.rocksp
cd ${THIS_DIR}/exe/trepl && $PREFIX/bin/luarocks make trepl-scm-1.rockspec || exit 1
cd ${THIS_DIR}/pkg/sys && $PREFIX/bin/luarocks make sys-1.1-0.rockspec || exit 1
cd ${THIS_DIR}/pkg/xlua && $PREFIX/bin/luarocks make xlua-1.0-0.rockspec || exit 1
+cd ${THIS_DIR}/extra/moses && $PREFIX/bin/luarocks make rockspec/moses-1.6.1-1.rockspec || exit 1
cd ${THIS_DIR}/extra/nn && $PREFIX/bin/luarocks make rocks/nn-scm-1.rockspec || exit 1
cd ${THIS_DIR}/extra/graph && $PREFIX/bin/luarocks make rocks/graph-scm-1.rockspec || exit 1
cd ${THIS_DIR}/extra/nngraph && $PREFIX/bin/luarocks make nngraph-scm-1.rockspec || exit 1