File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
16
16
RUN yum install -y sqlite-devel zlib-devel openssl-devel pcre-devel vim tk-devel tkinter libtool xz graphviz
17
17
COPY build_scripts /build_scripts
18
18
RUN bash build_scripts/build.sh && \
19
- bash build_scripts/install_nccl2.sh && rm -r build_scripts
19
+ bash build_scripts/install_nccl2.sh && rm -rf build_scripts
20
20
21
21
ENV SSL_CERT_FILE=/opt/_internal/certs.pem
22
22
Original file line number Diff line number Diff line change @@ -50,6 +50,15 @@ function do_cpython_build {
50
50
mkdir -p ${prefix} /lib
51
51
# -Wformat added for https://bugs.python.org/issue17547 on Python 2.6
52
52
53
+ if [ $( lex_pyver $py_ver ) -eq $( lex_pyver 3.6) ]; then
54
+ wget https://www.sqlite.org/2018/sqlite-autoconf-3250300.tar.gz
55
+ tar -zxf sqlite-autoconf-3250300.tar.gz
56
+ cd sqlite-autoconf-3250300
57
+ ./configure --prefix=/usr/local
58
+ make -j8 && make install
59
+ cd ../ && rm sqlite-autoconf-3250300.tar.gz
60
+ fi
61
+
53
62
# NOTE --enable-shared for generating libpython shared library needed for
54
63
# linking of some of the nupic.core test executables.
55
64
if [ $( lex_pyver $py_ver ) -ge $( lex_pyver 3.7) ]; then
@@ -59,9 +68,9 @@ function do_cpython_build {
59
68
make -j8 > /dev/null
60
69
make altinstall > /dev/null
61
70
else
62
- CFLAGS=" -Wformat" ./configure --prefix=${prefix} --enable-shared $unicode_flags > /dev/null
63
- make -j8 > /dev/null
64
- make install > /dev/null
71
+ LD_LIBRARY_PATH=/usr/local/lib: ${LD_LIBRARY_PATH} CFLAGS=" -Wformat" ./configure --prefix=${prefix} --enable-shared $unicode_flags > /dev/null
72
+ LD_LIBRARY_PATH=/usr/local/lib: ${LD_LIBRARY_PATH} make -j8 > /dev/null
73
+ LD_LIBRARY_PATH=/usr/local/lib: ${LD_LIBRARY_PATH} make install > /dev/null
65
74
fi
66
75
popd
67
76
echo " ZZZ looking for libpython"
You can’t perform that action at this time.
0 commit comments