Skip to content

Commit

Permalink
deps/softwarecontainer-dependencies.sh: Install python3-lxc manually
Browse files Browse the repository at this point in the history
python3-lxc Ubuntu package depends on LXC packages, therefore LXC of
conflicting version will be installed.

This commits fixes installation of python-lxc by installing it from
source.

Signed-off-by: Alexander Livenets <[email protected]>
  • Loading branch information
Alexander Livenets committed Apr 17, 2020
1 parent 78b97f3 commit b3c965c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion deps/pytest-and-dbus-testing-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function install {
}

# Install both python2 and python3 versions
install python3-dbus python3-pip python3-lxc
install python3-dbus python3-pip
install python-gobject python-dbus python-pip

pip install pydbus
Expand All @@ -57,3 +57,11 @@ pip3 install pydbus
pip3 install pytest
pip3 install psutil

# Download and install python3-lxc manually.
# python3-lxc Ubuntu package depends on LXC packages, therefore LXC of
# conflicting version will be installed
rm -rf python3-lxc
git clone git://github.com/lxc/python3-lxc -b python3-lxc-3.0.4
cd python3-lxc

python3 ./setup.py install
2 changes: 1 addition & 1 deletion deps/softwarecontainer-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install libdbus-1-dev libglibmm-2.4-dev libglibmm-2.4 \
dbus-x11 libcap-dev libtool python3-dev

apt-get remove --allow-downgrades --allow-remove-essential --allow-change-held-packages -fuy lxcfs lxc2 lxc-dev lxc-common \
liblxc-common liblxc-dev lxc1 liblxc1 lxc-templates lxc-tests lxc-utils
liblxc-common liblxc-dev lxc1 liblxc1 lxc-templates lxc-tests lxc-utils python3-lxc

# Download and install lxc
rm -rf lxc
Expand Down

0 comments on commit b3c965c

Please sign in to comment.