name = 'Python'
version = '3.3.2'

homepage = 'http://python.org/'
description = "Python is a programming language that lets you work more quickly and integrate your systems more effectively."

toolchain = {'name': 'ictce', 'version': '5.3.0'}
toolchainopts = {'pic': True, 'opt': True, 'optarch': True}

numpyversion = '1.7.1'
scipyversion = '0.12.0'

source_urls = ['http://www.python.org/ftp/%(namelower)s/%(version)s/']
sources = [SOURCE_TGZ]

patches = ['python-3.3_libffi-include-xmmintrin.patch']

# python needs bzip2 to build the bz2 package
dependencies = [
    ('bzip2', '1.0.6'),
    ('zlib', '1.2.8'),
    ('libreadline', '6.2'),
    ('ncurses', '5.9'),
    #   ('OpenSSL', '1.0.1f'),  # OS dependency should be preferred for security reasons
]

osdependencies = [('openssl-devel', 'libssl-dev', 'libopenssl-devel')]

# order is important!
exts_list = [
    ('setuptools', '1.1.1', {
        'source_urls': ['https://pypi.python.org/packages/source/s/setuptools'],
    }),
    ('pip', '1.4.1', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pip/'],
    }),
    ('nose', '1.3.0', {
        'source_urls': ['https://pypi.python.org/packages/source/n/nose/'],
    }),
    ('numpy', numpyversion, {
        'source_urls': [('http://sourceforge.net/projects/numpy/files/NumPy/%s' % numpyversion, 'download')],
        'patches': ['numpy-1.7.1_distutils_multiple-lib-dirs.patch'],
    }),
    ('scipy', scipyversion, {
        'source_urls': [('http://sourceforge.net/projects/scipy/files/scipy/%s' % scipyversion, 'download')],
    }),
]

moduleclass = 'lang'
