Repository: incubator-singa
Updated Branches:
  refs/heads/master ec0878bad -> 348c5e54d


SINGA-149 Docker build fail

Docker build failed during `make install`.

The error is caused by the `install-pyLTLIBRARIES` target in the Makefile fails 
to check for the
exitence of `.libs/_driver.so`.

The fix simply adds the the check to `Makefile.am`.


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/348c5e54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/348c5e54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/348c5e54

Branch: refs/heads/master
Commit: 348c5e54da4d797ae2bcf5ee58a3402dfd662803
Parents: ec0878b
Author: Anh Dinh <[email protected]>
Authored: Thu Mar 17 14:02:58 2016 +0800
Committer: Anh Dinh <[email protected]>
Committed: Thu Mar 17 14:03:32 2016 +0800

----------------------------------------------------------------------
 Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/348c5e54/Makefile.am
----------------------------------------------------------------------
diff --git a/Makefile.am b/Makefile.am
index 55c45e1..b2587a4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -332,7 +332,9 @@ libsingagpu.so: $(CUDA_OBJS)
 # Create python class files
 install-pyLTLIBRARIES: $(py_LTLIBRARIES)
        touch tool/python/singa/__init__.py
-       cp -f .libs/_driver.so tool/python/singa/
+       @if [ -f ".libs/_driver.so" ]; then \
+         cp -f .libs/_driver.so tool/python/singa/;\
+       fi
 
 uninstall-pyLTLIBRARIES:
        rm -f tool/python/singa/__init__.py

Reply via email to