PyGTK-2.24.0-foss-2018b-Python-3.6.6.eb 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. easyblock = 'ConfigureMake'
  2. name = 'PyGTK'
  3. version = '2.24.0'
  4. versionsuffix = '-Python-%(pyver)s'
  5. homepage = 'http://www.pygtk.org/'
  6. description = """PyGTK lets you to easily create programs with a graphical user interface
  7. using the Python programming language."""
  8. toolchain = {'name': 'foss', 'version': '2018b'}
  9. source_urls = [PYPI_SOURCE]
  10. sources = [SOURCELOWER_TAR_BZ2]
  11. checksums = ['cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912']
  12. dependencies = [
  13. ('Python', '2.7.15'),
  14. ('GLib', '2.54.3'),
  15. ('PyGObject', '2.28.7', versionsuffix),
  16. ('GTK+', '2.24.32'),
  17. ('ATK', '2.28.1'),
  18. ('PyCairo', '1.18.0', versionsuffix),
  19. ('libglade', '2.6.4'),
  20. ]
  21. postinstallcmds = [
  22. "sed -i s#'codegendir=${datadir}'#codegendir=$EBROOTPYGOBJECT/share# %(installdir)s/lib/pkgconfig/pygtk-2.0.pc",
  23. "sed -i s#'exec_prefix=${prefix}'#exec_prefix=$EBROOTPYGOBJECT# %(installdir)s/bin/pygtk-codegen-2.0",
  24. ]
  25. modextrapaths = {
  26. 'PYTHONPATH': [
  27. 'lib/python%(pyshortver)s/site-packages',
  28. 'lib64/python%(pyshortver)s/site-packages',
  29. 'lib/python%(pyshortver)s/site-packages/gtk-%(version_major)s.0',
  30. 'lib64/python%(pyshortver)s/site-packages/gtk-%(version_major)s.0',
  31. ],
  32. }
  33. sanity_check_paths = {
  34. 'files': ['lib/pkgconfig/pygtk-%(version_major)s.0.pc'],
  35. 'dirs': ['lib/pygtk'],
  36. }
  37. sanity_check_commands = [
  38. ('python', "-c 'import gtk'"),
  39. ('python', "-c 'import gtk.glade'"),
  40. ]
  41. moduleclass = 'vis'