setup.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. 'DispVM = qubes.vm.dispvm:DispVM',
  32. ],
  33. 'qubes.ext': [
  34. 'qubes.ext.qubesmanager = qubes.ext.qubesmanager:QubesManager',
  35. 'qubes.ext.gui = qubes.ext.gui:GUI',
  36. 'qubes.ext.r3compatibility = qubes.ext.r3compatibility:R3Compatibility',
  37. ],
  38. 'qubes.devices': [
  39. 'pci = qubes.devices:PCIDevice',
  40. ],
  41. 'qubes.storage': [
  42. 'file = qubes.storage.file:FilePool',
  43. 'linux-kernel = qubes.storage.kernels:LinuxKernel',
  44. ]
  45. })