PyGTK-2.24.0-intel-2018-Python-2.7.13.eb 1.4 KB

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