-
Notifications
You must be signed in to change notification settings - Fork 20
/
install_osx_user.sh
62 lines (48 loc) · 1.75 KB
/
install_osx_user.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# This script will build python3-sipsimple and its command line tools on MacOS
# https://github.com/AGProjects/python3-sipsimple
# Last tested on MacOS Ventura 13.6.7, Xcode 14.3.1 and Python 3.9
#
# Install Xcode from Apple
# Install MacPorts from https://www.macports.org
# Install python 3.9 from https://www.python.org/ftp/python/3.9.12/python-3.9.12-macosx10.9.pkg
#
# Then run this script to install the packages in ~/Library/Python/3.9/lib/python/site-packages/
# Install C building dependencies
sudo port install darcs yasm x264 gnutls openssl sqlite3 gnutls ffmpeg mpfr libmpc libvpx
# Install Python building dependencies
pip3 install --user cython==0.29.37 dnspython lxml twisted python-dateutil greenlet \
zope.interface requests gmpy2 wheel gevent
# Create a work directory
if [ ! -d work ]; then
mkdir work
fi
cd work
# Download and build SIP SIMPLE client SDK built-in dependencies
for p in python3-application python3-eventlib python3-gnutls python3-otr python3-msrplib python3-xcaplib; do
if [ ! -d $p ]; then
darcs clone http://devel.ag-projects.com/repositories/$p
fi
cd $p
pip3 install --user .
cd ..
done
# Download and build SIP SIMPLE client SDK
if [ ! -d python3-sipsimple ]; then
darcs clone http://devel.ag-projects.com/repositories/python3-sipsimple
fi
cd python3-sipsimple
chmod +x ./get_dependencies.sh
chmod +x ./build_inplace
./get_dependencies.sh
pip3 install --user .
cd ..
# Download and install SIP command line tools
if [ ! -d sipclients3 ]; then
darcs clone http://devel.ag-projects.com/repositories/sipclients3
fi
cd sipclients3
pip3 install --user .
cd ..
# The binaries starting with sip- prefix have been installed in ~/Library/Python/3.9/bin
# See more notes inside docs/ folder