Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit b4f20dd

Browse files
committed
update to python 3.4
1 parent 063fe2d commit b4f20dd

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

mac-installer.sh

+18-14
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
mkdir tmp
33
cd tmp
44
echo "Downloading Python 3"
5-
curl http://www.python.org/ftp/python/3.3.5/python-3.3.5-macosx10.6.dmg > python-3.3.5-macosx10.6.dmg
5+
curl http://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.6.dmg > python-3.4.1-macosx10.6.dmg
66

77

88
sleep 1
9-
hdiutil attach python-3.3.5-macosx10.6.dmg
9+
hdiutil attach python-3.4.1-macosx10.6.dmg
1010
sleep 2
1111

12-
cd /Volumes/Python\ 3.3.5
12+
cd /Volumes/Python\ 3.4.1
1313
echo "The installer will query for your password in order to install Python 3 on your system"
1414
sudo installer -pkg Python.mpkg -target /
1515
cd -
@@ -23,28 +23,32 @@ python3 setup.py install
2323

2424
echo "Downloading and installing iPython 3 and dependencies"
2525
cd ..
26-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 ipython
27-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 readline
28-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 tornado
29-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 pyzmq
30-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 jinja2
31-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 numpy
32-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 scipy
33-
/Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 matplotlib
26+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 ipython
27+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 readline
28+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 tornado
29+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 pyzmq
30+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 jinja2
31+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 numpy
32+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 scipy
33+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 matplotlib
34+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 seaborn
35+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 pandas
36+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 flask
37+
/Library/Frameworks/Python.framework/Versions/3.4/bin/easy_install-3.4 whoosh
3438
cd ..
3539
#echo "export PATH=\"/Library/Frameworks/Python.framework/Versions/3.3/bin/:\$PATH\"" >> ~/.bash_profile
3640

3741
echo -n "Do you want the installer to add Python 3 to your default path in your ~/.profile? (y/n)"
3842
read yn
3943
yn="$(tr [A-Z] [a-z] <<< "$yn")"
4044
if [ "$yn" == "y" ]; then
41-
echo "export PATH=\"/Library/Frameworks/Python.framework/Versions/3.3/bin/:\$PATH\"" >> ~/.profile
45+
echo "export PATH=\"/Library/Frameworks/Python.framework/Versions/3.4/bin/:\$PATH\"" >> ~/.profile
4246
else
43-
echo "Python should now be installed in /Library/Frameworks/Python.framework/Versions/3.3/bin/"
47+
echo "Python should now be installed in /Library/Frameworks/Python.framework/Versions/3.4/bin/"
4448
fi
4549

4650
curl https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/toc.js > $(ipython locate)/nbextensions/toc.js
4751
curl https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/toc.css > $(ipython locate)/nbextensions/toc.css
4852
echo "IPython.load_extensions('toc');" >> $(ipython locate profile)/static/custom/custom.js
4953

50-
export PATH="/Library/Frameworks/Python.framework/Versions/3.3/bin/:$PATH"
54+
export PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin/:$PATH"

0 commit comments

Comments
 (0)