mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
debian: postinst: add work-around to manually install python3-ipaddr
python3 ipaddress behave differently from python2-ipaddr, this is a serious problem for us since it breaks most of the ip addresses code. The work around install the python3-ipaddr via pip3 (and installs pip3 if necessary). The workaround will stay in the code util the ipaddress issue is fixed. Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
8
debian/ifupdown2.postinst
vendored
8
debian/ifupdown2.postinst
vendored
@ -92,6 +92,14 @@ case "$1" in
|
||||
process_udev
|
||||
chmod +x /usr/share/ifupdown2/__main__.py
|
||||
postinst_remove_diverts
|
||||
|
||||
#### WORK AROUND
|
||||
# We have to manually install pip3
|
||||
apt-get install python3-pip -y
|
||||
sleep 1
|
||||
pip3 install wheel
|
||||
pip3 install setuptools
|
||||
pip3 install ipaddr
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
Reference in New Issue
Block a user