easyblock = "PythonPackage"

name = 'Mercurial'
version = '2.5.2'

homepage = 'http://mercurial.selenic.com/'
description = """Mercurial is a free, distributed source control management tool.
 It efficiently handles projects of any size and offers an easy and intuitive interface."""

toolchain = {'name': 'ictce', 'version': '5.3.0'}

source_urls = ['http://mercurial.selenic.com/release/']
sources = [SOURCELOWER_TAR_GZ]

local_python = "Python"
local_pythonversion = '2.7.3'
local_pythonshortversion = ".".join(local_pythonversion.split(".")[:-1])

versionsuffix = "-%s-%s" % (local_python, local_pythonversion)

dependencies = [(local_python, local_pythonversion)]

sanity_check_paths = {
    'files': ['bin/hg'],
    'dirs': ['lib/local_python%s/site-packages/mercurial' % local_pythonshortversion],
}

moduleclass = 'tools'
