setup.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-"
  3. # vim: set expandtab tabstop=4 shiftwidth=4:
  4. """
  5. $Id$
  6. This file is part of the xsser project, https://xsser.03c8.net
  7. Copyright (c) 2011/2018 psy <epsylon@riseup.net>
  8. xsser is free software; you can redistribute it and/or modify it under
  9. the terms of the GNU General Public License as published by the Free
  10. Software Foundation version 3 of the License.
  11. xsser is distributed in the hope that it will be useful, but WITHOUT ANY
  12. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  13. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  14. details.
  15. You should have received a copy of the GNU General Public License along
  16. with xsser; if not, write to the Free Software Foundation, Inc., 51
  17. Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. """
  19. from setuptools import setup
  20. import os
  21. data_files = []
  22. image_files = []
  23. doc_files = []
  24. gtk_doc_files = []
  25. for afile in os.listdir('doc'):
  26. if afile != '.svn':
  27. doc_files.append('doc/' + afile)
  28. for afile in os.listdir('gtk/docs'):
  29. if afile != '.svn':
  30. gtk_doc_files.append('gtk/docs/' + afile)
  31. data_files = ['gtk/images/world.png', 'gtk/images/xsser.jpg',
  32. 'gtk/images/xssericon_16x16.png',
  33. 'gtk/images/xssericon_24x24.png']
  34. gtk_files = ['gtk/xsser.ui']
  35. gtk_app_files = ['gtk/xsser.desktop']
  36. setup(
  37. name = "xsser",
  38. version = "1.7",
  39. packages = ['core', 'core.fuzzing', 'core.post'],
  40. data_files = [('/usr/share/doc/xsser/', doc_files),
  41. ('/usr/share/xsser/gtk/images/', data_files),
  42. ('/usr/share/xsser/gtk/docs/', gtk_doc_files),
  43. ('/usr/share/applications/', gtk_app_files),
  44. ('/usr/share/xsser/gtk/', gtk_files)],
  45. scripts = ['xsser'],
  46. test_suite = "tests"
  47. )