setup.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/python2 -O
  2. # vim: fileencoding=utf-8
  3. import os
  4. import setuptools
  5. # don't import: import * is unreliable and there is no need, since this is
  6. # compile time and we have source files
  7. def get_console_scripts():
  8. for filename in os.listdir('./qubes/tools'):
  9. basename, ext = os.path.splitext(os.path.basename(filename))
  10. if basename == '__init__' or ext != '.py':
  11. continue
  12. yield '{} = qubes.tools.{}:main'.format(
  13. basename.replace('_', '-'), basename)
  14. if __name__ == '__main__':
  15. setuptools.setup(
  16. name='qubes',
  17. version=open('version').read().strip(),
  18. author='Invisible Things Lab',
  19. author_email='woju@invisiblethingslab.com',
  20. description='Qubes core package',
  21. license='GPL2+',
  22. url='https://www.qubes-os.org/',
  23. packages=setuptools.find_packages(exclude=('core*', 'tests')),
  24. entry_points={
  25. 'console_scripts': list(get_console_scripts()),
  26. 'qubes.vm': [
  27. 'AppVM = qubes.vm.appvm:AppVM',
  28. 'TemplateVM = qubes.vm.templatevm:TemplateVM',
  29. 'StandaloneVM = qubes.vm.standalonevm:StandaloneVM',
  30. 'AdminVM = qubes.vm.adminvm:AdminVM',
  31. ],
  32. 'qubes.ext': [
  33. 'qubes.ext.qubesmanager = qubes.ext.qubesmanager:QubesManager',
  34. 'qubes.ext.gui = qubes.ext.gui:GUI',
  35. 'qubes.ext.r3compatibility = qubes.ext.r3compatibility:R3Compatibility',
  36. ],
  37. 'qubes.devices': [
  38. 'pci = qubes.devices:PCIDevice',
  39. ],
  40. 'qubes.storage': [
  41. 'xen = qubes.storage.xen:XenPool',
  42. ]
  43. })