Skip to content

Commit a65e045

Browse files
f0rkizardus
authored andcommitted
build qemu also with python from virtualenv
1 parent 7004c61 commit a65e045

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

qemu/install

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/bin/bash
2+
set -e -o pipefail
23

34
curl http://wiki.qemu-project.org/download/qemu-2.6.1.tar.bz2 | tar xvj
45
cd qemu-2.6.1
5-
if [[ "$(python --version 2>&1)" =~ Python\ 3 ]]; then
6-
./configure "--prefix=$(dirname $PWD)" "--python=$(which python2)"
7-
else
8-
./configure "--prefix=$(dirname $PWD)"
9-
fi
6+
7+
source ctf-tools-venv-activate
8+
./configure "--prefix=$(dirname $PWD)" "--python=$(which python)"
109
make -j $(nproc)
1110
make install

0 commit comments

Comments
 (0)