@@ -15,24 +15,20 @@ usage() {
15
15
# Basic build system:
16
16
PACKAGES_DEBIAN=" subversion git build-essential automake"
17
17
# Python tools
18
- PACKAGES_DEBIAN=" $PACKAGES_DEBIAN python python -pip python -setuptools python -dev cython "
18
+ PACKAGES_DEBIAN=" $PACKAGES_DEBIAN python3 python3 -pip python3 -setuptools python3 -dev"
19
19
# Testsuite: basic requirements:
20
- PACKAGES_DEBIAN=" $PACKAGES_DEBIAN python-yaml python-twisted-core python-lxml liblua5.1-0-dev lua5.1 gdb"
20
+ PACKAGES_DEBIAN=" $PACKAGES_DEBIAN liblua5.1-0-dev lua5.1 gdb"
21
21
# Sipp requirements
22
22
PACKAGES_DEBIAN=" $PACKAGES_DEBIAN libpcap-dev libssl-dev libsctp-dev libncurses5-dev"
23
- # pjsua requirements
24
- # PACKAGES_DEBIAN="$PACKAGES_DEBIAN python-dev"
25
23
26
24
# Basic build system:
27
25
PACKAGES_RH=" subversion git gcc gcc-c++ patch"
28
26
# Python tools
29
- PACKAGES_RH=" $PACKAGES_RH python python -pip python -setuptools python -devel Cython "
27
+ PACKAGES_RH=" $PACKAGES_RH python3 python3 -pip python3 -setuptools python3 -devel"
30
28
# Testsuite: basic requirements:
31
- PACKAGES_RH=" $PACKAGES_RH PyYAML python-twisted-core python-lxml lua-devel gdb"
29
+ PACKAGES_RH=" $PACKAGES_RH lua-devel gdb"
32
30
# Sipp requirements
33
31
PACKAGES_RH=" $PACKAGES_RH libpcap-devel openssl-devel lksctp-tools-devel"
34
- # pjsua requirements
35
- # PACKAGES_RH="$PACKAGES_RH python-devel"
36
32
37
33
LIBDIR=/usr/lib$( getconf LONG_BIT | fgrep 64)
38
34
[ ! -d $LIBDIR ] && LIBDIR=/usr/lib
@@ -145,38 +141,13 @@ else
145
141
exit 1
146
142
fi
147
143
148
- install_starpy () {
149
- $testcmd cd addons
150
- $testcmd make update
151
- $testcmd cd starpy
152
- $testcmd sudo python setup.py install
153
- $testcmd cd ../..
154
- }
155
-
156
144
install_asttest () {
157
145
$testcmd cd asttest
158
146
$testcmd make
159
147
$testcmd sudo make install
160
148
$testcmd cd ..
161
149
}
162
150
163
- # Build and install yappcap
164
- install_yappcap () {
165
- SAVE_DIR=` pwd`
166
- $testcmd cd /tmp
167
-
168
- PROJECT_DIR=yappcap
169
-
170
- $testcmd sudo rm -rf $PROJECT_DIR
171
- $testcmd git clone https://github.com/otherwiseguy/yappcap $PROJECT_DIR
172
- $testcmd cd $PROJECT_DIR
173
-
174
- $testcmd make
175
- $testcmd sudo make install
176
-
177
- $testcmd cd $SAVE_DIR
178
- }
179
-
180
151
# Build and install sipp
181
152
install_sipp () {
182
153
SAVE_DIR=` pwd`
@@ -223,7 +194,6 @@ install_pjsua() {
223
194
224
195
# The testsuite only cares about pjsua from what we have built.
225
196
$testcmd sudo cp -v pjsip-apps/bin/pjsua-` uname -m` -* -linux-gnu $MY_BIN /pjsua
226
- $testcmd sudo make -C pjsip-apps/src/python install
227
197
228
198
$testcmd cd $SAVE_DIR
229
199
}
@@ -232,24 +202,9 @@ install_testsuite_dependencies()
232
202
{
233
203
$install_packages
234
204
235
- if [ " x` find $LIBDIR /python* $LIBLOCALDIR /python* -name ' starpy*' ` " = " x" ] ; then
236
- install_starpy
237
- fi
238
-
239
- if [ " x` find $LIBDIR /python* $LIBLOCALDIR /python* -name yappcap.so` " = " x" ] ; then
240
- install_yappcap
241
- fi
242
-
243
205
which asttest > /dev/null || install_asttest
244
206
which sipp > /dev/null || install_sipp
245
207
which pjsua > /dev/null || install_pjsua
246
-
247
- $testcmd sudo pip install construct
248
- $testcmd sudo pip install requests
249
-
250
- # The following is needed for ARI tests and may not install
251
- # on older distributions.
252
- $testcmd sudo pip install autobahn
253
208
}
254
209
255
210
if in_test_mode; then
@@ -266,7 +221,7 @@ if ! in_test_mode; then
266
221
echo " ## $1 completed successfully"
267
222
echo " #############################################"
268
223
echo " "
269
- echo " Testsuite requires 2.6.5 <= python version < 3 "
224
+ echo " Testsuite requires python version >= 3.6.8 "
270
225
echo " Your installed python is"
271
226
python --version
272
227
fi
0 commit comments