Skip to content

Commit

Permalink
scripts: fix setup.py for Ubuntu versions
Browse files Browse the repository at this point in the history
As explained in issue #1085 the setup script is broken for some
Ubuntu versions. This commit installs the packages `python-dpkt`
and `python3-dpkt` for the respective Ubuntu version.

Signed-off-by: Robin Gögge <[email protected]>
  • Loading branch information
rgo3 authored and nyh committed May 24, 2020
1 parent 91de2b9 commit cf78fa9
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions scripts/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ class Ubuntu(object):
'maven',
'openssl',
'p11-kit',
'python3-dpkt',
'python3-requests',
'qemu-system-x86',
'qemu-utils',
Expand All @@ -263,49 +262,49 @@ class Ubuntu(object):
ec2_post_install = None

class Ubuntu_20_04(object):
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients']
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients', 'python3-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
version = '20.04'

class Ubuntu_19_10(object):
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients']
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients', 'python3-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
version = '19.10'

class Ubuntu_19_04(object):
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients']
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients', 'python-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
version = '19.04'

class Ubuntu_18_10(object):
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients']
packages = ['bridge-utils', 'libvirt-daemon-system', 'libvirt-clients', 'python-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
version = '18.10'

class Ubuntu_18_04(object):
packages = ['bridge-utils', 'libvirt-bin']
packages = ['bridge-utils', 'libvirt-bin', 'python-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
version = '18.04'

class Ubuntu_17_04(object):
packages = ['libvirt-bin']
packages = ['libvirt-bin', 'python-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
version = '17.04'

class Ubuntu_16_04(object):
packages = ['libvirt-bin']
packages = ['libvirt-bin', 'python-dpkt']
ec2_packages = ['ec2-api-tools', 'awscli']
test_packages = []
ec2_post_install = None
Expand Down

0 comments on commit cf78fa9

Please sign in to comment.