Skip to content

Commit 051ea0f

Browse files
committed
[CORE-1347]: python3 enabled
[CORE-1347]: numpy and scipy for python3 [CORE-1347]: add missing file [CORE-1347]: correct python3 numpy installation [CORE-1347]: remove unused file [CORE-1347]: add python3 reqs
1 parent 7faa240 commit 051ea0f

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ RUN apt-get update && apt-get install -qqy \
2222
libssl-dev \
2323
libjpeg-dev \
2424
python-dev \
25+
python3-dev \
2526
python-numpy \
27+
python3-numpy \
2628
python-scipy \
29+
python3-scipy \
2730
wget && \
2831
wget https://bootstrap.pypa.io/get-pip.py && \
2932
python get-pip.py && \
@@ -41,11 +44,19 @@ RUN virtualenv --system-site-packages v5.0 && \
4144
tar xzvf /tmp/50.tar.gz --skip-old-files && \
4245
. v5.0/bin/activate && \
4346
pip install -r /tmp/requirements.txt && \
47+
pip install -r /tmp/external_requirements.txt && \
48+
deactivate
49+
50+
RUN virtualenv --system-site-packages -p python3 p3v5.0 && \
51+
. p3v5.0/bin/activate && \
52+
pip install -r /tmp/requirements_python3.txt && \
4453
pip install -r /tmp/external_requirements.txt
4554

4655
RUN ln -sf /home/syncano/v5.0/bin/python /usr/bin/python && \
4756
ln -sf /home/syncano/v5.0/bin/python /usr/bin/python27-lib5.0 && \
48-
ln -sf /home/syncano/v4.2/bin/python /usr/bin/python27-lib4.2
57+
ln -sf /home/syncano/v4.2/bin/python /usr/bin/python27-lib4.2 && \
58+
ln -sf /home/syncano/p3v5.0/bin/python /usr/bin/python3 && \
59+
ln -sf /home/syncano/p3v5.0/bin/python /usr/bin/python3-lib5.0
4960

5061
# -- CUT END --
5162
USER syncano

circle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ test:
1212
override:
1313
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
1414
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
15+
1516
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
1617
- docker run -it -v `pwd`/test_v50.py:/tmp/test.py quay.io/syncano/python-codebox python /tmp/test.py
18+
1719
- docker run -it -v `pwd`/test_v42.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib4.2 /tmp/test.py
1820
- docker run -it -v `pwd`/test_v50.py:/tmp/test.py quay.io/syncano/python-codebox python27-lib5.0 /tmp/test.py
1921

22+
- docker run -it -v `pwd`/test.py:/tmp/test.py quay.io/syncano/python-codebox python3 /tmp/test.py
23+
- docker run -it -v `pwd`/test_v50.py:/tmp/test.py quay.io/syncano/python-codebox python3-lib5.0 /tmp/test.py
24+
2025
deployment:
2126
production:
2227
branch:

requirements_python3.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Pillow==2.7.0
2+
requests==2.7.0
3+
icalendar==3.8.4
4+
pytz==2014.10
5+
html2text==2015.2.18
6+
pkgtools==0.7.3
7+
names==0.3.0
8+
httplib2==0.9.1
9+
twilio==4.4.0
10+
qrcode==5.1
11+
analytics-python==1.0.3
12+
osa==0.1.6.6
13+
google-api-python-client==1.4.1
14+
six==1.9.0
15+
uritemplate==0.6
16+
oauth2client==1.4.11
17+
oauthlib==1.0.3
18+
requests-oauthlib==0.5.0
19+
tweepy==3.4.0
20+
braintree==3.20.0
21+
googleads==3.11.0
22+
fastly==0.0.2
23+
pandas==0.17.1
24+
beautifulsoup4==4.4.1
25+
boto3==1.2.5
26+
syncano==5.0.1
27+
mixpanel==4.3.0
28+
mixpanel-query-py==0.1.7

0 commit comments

Comments
 (0)