Skip to content

Commit a2a6873

Browse files
committed
Fix mac scripts
1 parent d5a9225 commit a2a6873

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

mac/02-install-c-deps.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
# Install C building dependencies
44
echo "Installing port dependencies..."
55

6-
sudo port install yasm x264 gnutls openssl sqlite3 ffmpeg mpfr libmpc libvpx wget gmp mpc
6+
sudo port install yasm x264 gnutls openssl sqlite3 ffmpeg mpfr libmpc libvpx wget gmp mpc libuuid
7+
8+
# This will conflict with buildin MacOS
9+
sudo mv /opt/local/include/uuid/uuid.h /opt/local/include/uuid/uuid.h.old
710

811
RESULT=$?
912
if [ $RESULT -ne 0 ]; then

mac/03-install-python-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ ! -d ~/work ]; then
44
fi
55

66
arch=`python3 -c "import platform; print(platform.processor())"`
7-
pver=`python3 -c "import sys; print(sys.version[0:4])"`
7+
pver=`python3 -c "import sys; print('%d.%d' % (sys.version_info[0], sys.version_info[1]))"`
88

99
envdir=sipsimple-python-$pver-$arch-env
1010

mac/activate_venv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
arch=`python3 -c "import platform; print(platform.processor())"`
3-
pver=`python3 -c "import sys; print(sys.version[0:3])"`
3+
pver=`python3 -c "import sys; print('%d.%d' % (sys.version_info[0], sys.version_info[1]))"`
44

55
venv="$HOME/work/sipsimple-python-$pver-$arch-env"
66

0 commit comments

Comments
 (0)