Skip to content
Snippets Groups Projects
matplotlib-2.0.2-Python-2.7.13-base.eb 1.17 KiB
Newer Older
  • Learn to ignore specific revisions
  • easyblock = "PythonPackage"
    
    name = 'matplotlib'
    version = '2.0.2'
    
    homepage = 'http://matplotlib.org'
    description = """matplotlib is a python 2D plotting library which produces publication quality figures in a variety of
     hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python
     and ipython shell, web application servers, and six graphical user interface toolkits."""
    
    toolchain = {'name': 'dummy', 'version': ''}
    
    source_urls = ['https://pypi.python.org/packages/f5/f0/9da3ef24ea7eb0ccd12430a261b66eca36b924aeef06e17147f9f9d7d310/']
    sources = [SOURCELOWER_TAR_GZ]
    
    python = "Python"
    pythonversion = '2.7.13'
    pyshortver = ".".join(pythonversion.split(".")[:-1])
    
    versionsuffix = "-%s-%s-base" % (python, pythonversion)
    
    dependencies = [
        (python, pythonversion, '-base'),
        ('freetype', '2.8'),
        ('libpng', '1.6.29'),
        ('numpy', '1.13.0', versionsuffix),
    ]
    
    pyprefix = 'lib/python%s/site-packages' % pyshortver
    eggname = 'matplotlib-%%(version)s-py%s-linux-x86_64.egg' % pyshortver
    sanity_check_paths = {
        'files': [],
        'dirs': [('%s/%%(name)s' % pyprefix, '%s/%s' % (pyprefix, eggname))],
    }
    
    moduleclass = 'vis'