Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit feed623

Browse files
committedApr 4, 2018
try with two sip libs
1 parent 7de0054 commit feed623

File tree

2 files changed

+59
-3
lines changed

2 files changed

+59
-3
lines changed
 

‎.docker/Dockerfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
FROM ubuntu:18.04
2+
MAINTAINER Denis Rouzaud <denis@opengis.ch>
3+
4+
LABEL Description="Docker container with QGIS dependencies" Vendor="QGIS.org" Version="1.0"
5+
6+
RUN apt-get update
7+
RUN apt-get install -y software-properties-common
8+
RUN apt-get update
9+
RUN apt-get install -y curl tar
10+
11+
WORKDIR /root
12+
RUN curl -s -S -O https://www.riverbankcomputing.com/hg/sip/archive/tip.tar.gz \
13+
&& tar xzf tip.tar.gz
14+
15+
RUN apt-get install -y make
16+
17+
RUN mkdir /root/sip419
18+
RUN mv $(find -type d -iname 'sip-*')/* sip419
19+
WORKDIR /root/sip419
20+
RUN sed -i -r "s/RM_HEXVERSION = '04ffff'/RM_HEXVERSION = '041308'/; s/RM_RELEASE = '4.255.255'/RM_RELEASE = '4.19.8'/" build.py
21+
#RUN python3 build.py prepare && python3 configure.py && make && make install
22+
23+
RUN apt-get install -y python3-sip
24+
25+
WORKDIR /root
26+
RUN curl -s -S -O https://svwh.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.9.2/PyQt5_gpl-5.9.2.tar.gz
27+
RUN tar xzf PyQt5_gpl-5.9.2.tar.gz
28+
WORKDIR /root/PyQt5_gpl-5.9.2
29+
RUN apt-get update
30+
RUN apt-get install -y qt5-qmake
31+
RUN apt-get install -y g++
32+
RUN apt-get install -y flex bison
33+
RUN apt-get install -y python3-dev
34+
35+
WORKDIR /root/sip419
36+
RUN python3 build.py prepare && python3 configure.py && make && make install
37+
38+
RUN apt-get install -y qt5-default
39+
RUN apt-get install -y libqt5svg5-dev
40+
WORKDIR /root/PyQt5_gpl-5.9.2
41+
RUN python3 configure.py --verbose --confirm-license --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --qsci-api --enable QtGui --enable QtSvg --enable QtSql
42+
RUN make && make install
43+
44+
WORKDIR /root
45+
RUN curl -s -S -O https://cfhcable.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10.3/QScintilla_gpl-2.10.3.tar.gz
46+
RUN tar xzf QScintilla_gpl-2.10.3.tar.gz
47+
WORKDIR /root/QScintilla_gpl-2.10.3/Python
48+
# RUN python3 configure.py --pyqt=PyQt5
49+
# RUN make
50+
# RUN make install

‎.docker/qgis3-build-deps.dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ RUN apt-get update \
6262
python3-nose2 \
6363
python3-pip \
6464
python3-psycopg2 \
65+
python3-pyqt5 \
66+
python3-pyqt5.qsci \
67+
python3-pyqt5.qtsql \
68+
python3-pyqt5.qtsvg \
6569
python3-termcolor \
6670
python3-yaml \
6771
qt3d5-dev \
@@ -90,11 +94,12 @@ RUN apt-get update \
9094
mock \
9195
future \
9296
termcolor \
93-
PyQt5 \
94-
QScintilla \
9597
&& apt-get autoremove -y python3-pip python2.7 \
9698
&& apt-get clean
9799

100+
RUN bash -c "echo $(sip -V)"
101+
RUN bash -c "echo $(which sip)"
102+
98103
WORKDIR /root
99104
RUN curl -s -S -O https://www.riverbankcomputing.com/hg/sip/archive/tip.tar.gz \
100105
&& tar xzf tip.tar.gz \
@@ -106,7 +111,8 @@ RUN python3 build.py prepare \
106111
&& make \
107112
&& make install
108113

109-
RUN echo $(sip -V)
114+
RUN bash -c "echo $(sip -V)"
115+
RUN bash -c "echo $(which sip)"
110116

111117
# WORKDIR /root
112118
# RUN curl -s -S -O https://svwh.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.9.2/PyQt5_gpl-5.9.2.tar.gz \

0 commit comments

Comments
 (0)
Please sign in to comment.