setup.py 1.8 KB

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