Last active
September 11, 2015 15:27
-
-
Save phoracek/5036d140c6e7750e8c20 to your computer and use it in GitHub Desktop.
test for needed vdsm dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import os | |
""" Run this from the vdsm folder """ | |
deps = set([ | |
'autoconf', | |
'automake', | |
'autoreconf', | |
'bridge-utils', | |
'dhclient', | |
'gcc', | |
'genisoimage', | |
'gettext-devel', | |
'git', | |
'libguestfs-tools-c', | |
'libnl', | |
'libnl3', | |
'libselinux-python', | |
'libtool', | |
'libvirt-python', | |
'logrotate', | |
'm2crypto', | |
'make', | |
'mom', | |
'openssl', | |
'policycoreutils-python', | |
'pyflakes', | |
'pyparted', | |
'python-argparse', | |
'python-blivet', | |
'python-cpopen', | |
'python-devel', | |
'python-dmidecode', | |
'python-ethtool', | |
'python-inotify', | |
'python-ioprocess', | |
'python-netaddr', | |
'python-nose', | |
'python-ordereddict', | |
'python-pep8', | |
'python-pthreading', | |
'python-simplejson', | |
'python-six', | |
'rpm-build', | |
'sanlock-python', | |
'sudo', | |
'yum' | |
]) | |
not_needed = set() | |
for dep in deps: | |
deps_copy = deps - not_needed | |
deps_copy.remove(dep) | |
with open('automation/build-artifacts.packages', 'w') as f: | |
for l in deps_copy: | |
f.write(l) | |
f.write('\n') | |
rc = os.system('../jenkins/mock_configs/mock_runner.sh ' | |
'--mock-confs-dir ../jenkins/mock_configs ' | |
'--build-only el7') | |
if rc == 0: | |
print('SCRIPT: dep %s is not needed' % dep) | |
not_needed.add(dep) | |
else: | |
print('SCRIPT: dep %s is needed' % dep) | |
print('DONE') | |
print(not_needed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment