easyblock = 'PythonPackage'

name = 'rpy2'
version = '2.4.3'

homepage = 'http://rpy.sourceforge.net/'
description = """rpy2 is a redesign and rewrite of rpy. It is providing a low-level 
interface to R from Python, a proposed high-level interface, including wrappers to 
graphical libraries, as well as R-like structures and functions. """

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = ['https://pypi.python.org/packages/source/r/%(name)s']
sources = [SOURCE_TAR_GZ]

python = 'Python'
pyver = '3.2.3'
pyshortver = '.'.join(pyver.split('.')[:2])
versionsuffix = '-%s-%s' % (python, pyver)

dependencies = [
    (python, pyver),
    ('R', '2.15.2'),
]

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%s/site-packages/%%(name)s-%%(version)s-py%s-linux-x86_64.egg' % (pyshortver, pyshortver)],
}

moduleclass = 'mpi'
