forked from aktos-io/aktos-dcs-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-on-osx.sh
executable file
·32 lines (27 loc) · 989 Bytes
/
install-on-osx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
brew update
# pip comes out of box for Os X since 10.6.
# But any dev using homebrew's python instead of Osx provided,
# has to run `sudo easy_install pip` after installing python,
# Again it won't be an issue because for most of the devs who switches to homebrew python,
# most likely do this for new pip.
# python-dev also comes default with Os X.
if ! hash pip; then
echo "python-pip is needed..."
sudo easy_install pip
fi
# zeromq is a bottled package comes along with headers & sources linux counterpart as libzmq*-dev
brew install libpgm
brew install zeromq || {
echo;
echo "ERROR: pyzmq 4.x is needed!"
echo;
echo "Install by yourself (from source) or install precompiled package";
echo;
echo "Note: For RaspberryPi: ";
echo " ";
echo " https://github.com/ceremcem/libzmq-4.x-armhf-cca.git";
echo;
echo "After installation, press enter to continue..."; read -p "Press Enter to continue";
}
sudo pip install -U -r requirements.txt