From 08f7a0be576af777252215859c8ae0234412f247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= Date: Mon, 30 Jul 2018 10:06:01 +0200 Subject: [PATCH] new file: p/Python/Python-2.7.15-base.eb new file: p/Python/Python-3.7.0-base.eb Former-commit-id: 50e826aa3f5aebc80b3cb89639d96aee546f3000 --- p/Python/Python-2.7.15-base.eb | 43 ++++++++++++++++++++++++++++ p/Python/Python-3.7.0-base.eb | 52 ++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 p/Python/Python-2.7.15-base.eb create mode 100644 p/Python/Python-3.7.0-base.eb diff --git a/p/Python/Python-2.7.15-base.eb b/p/Python/Python-2.7.15-base.eb new file mode 100644 index 00000000..f9ac6a8c --- /dev/null +++ b/p/Python/Python-2.7.15-base.eb @@ -0,0 +1,43 @@ +# IT4Innovations 2018 + +easyblock = "EB_Python" +name = 'Python' +version = '2.7.15' +versionsuffix = '-base' + +homepage = 'http://python.org/' +description = "Python is a programming language that lets you work more quickly and integrate your systems more effectively." + +toolchain = {'name': 'dummy', 'version': ''} +toolchainopts = {'pic': True, 'opt': True, 'optarch': True} + +source_urls = ['http://www.python.org/ftp/%(namelower)s/%(version)s/'] +sources = [SOURCE_TGZ] + +dependencies = [ + ('bzip2', '1.0.6'), + ('zlib', '1.2.11'), + ('libreadline', '7.0'), + ('ncurses', '6.1'), + ('SQLite', '3.17.0'), + ('Tk', '8.6.6'), +] + +osdependencies = [('openssl-devel', 'libssl-dev', 'libopenssl-devel')] + +#buildopts = 'CPPFLAGS="-I/apps/all/bzip2/1.0.6/include -I/apps/all/zlib/1.2.8/include -I/apps/all/ncurses/5.9/include -I/apps/all/SQLite/3.8.8.1/include" LDFLAGS="-L/apps/all/bzip2/1.0.6/lib -L/apps/all/zlib/1.2.8/lib -L/apps/all/ncurses/5.9/lib -L/apps/all/SQLite/3.8.8.1/lib:$CPPFLAGS"' + +exts_list = [ + ('setuptools', '40.0.0', { + 'source_urls': ['https://pypi.python.org/packages/source/s/setuptools/'], + 'source_tmpl': '%(name)s-%(version)s.zip', + }), + ('pip', '18.0', { + 'source_urls': ['http://pypi.python.org/packages/source/p/pip/'], + }), + ('nose', '1.3.7', { + 'source_urls': ['http://pypi.python.org/packages/source/n/nose/'], + }), +] + +moduleclass = 'lang' diff --git a/p/Python/Python-3.7.0-base.eb b/p/Python/Python-3.7.0-base.eb new file mode 100644 index 00000000..3c8faf89 --- /dev/null +++ b/p/Python/Python-3.7.0-base.eb @@ -0,0 +1,52 @@ +# IT4Innovations 2018 + +name = 'Python' +version = '3.7.0' +versionsuffix = '-base' + +homepage = 'http://python.org/' +description = "Python is a programming language that lets you work more quickly and integrate your systems more effectively." + +toolchain = {'name': 'dummy', 'version': ''} +toolchainopts = {'pic': True, 'opt': True, 'optarch': True} + +source_urls = ['http://www.python.org/ftp/%(namelower)s/%(version)s/'] +sources = [SOURCE_TGZ] + +prebuildopts = 'export CFLAGS="-I${EBROOTXZ}/include" && ' +prebuildopts += 'export LDFLAGS="-L${EBROOTXZ}/lib" && ' +configopts = "--enable-optimizations" + +# python needs bzip2 to build the bz2 package +dependencies = [ + ('bzip2', '1.0.6'), + ('libreadline', '7.0'), + ('SQLite', '3.17.0'), + ('Tk', '8.6.6'), + ('GMP', '6.1.2'), + ('XZ', '5.2.3'), + ('zlib', '1.2.11'), + ('ncurses', '6.1'), +# ('OpenSSL', '1.0.1q'), # OS dependency should be preferred if the os version is more recent then this version, it's +# nice to have an up to date openssl for security reasons +] + +osdependencies = [('openssl-devel', 'libssl-dev')] + +# order is important! +# package versions updated Feb 25th 2016 +exts_list = [ + ('setuptools', '20.1.1', { + 'source_urls': ['https://pypi.python.org/packages/source/s/setuptools/'], + }), + ('pip', '18.0', { + 'source_urls': ['https://pypi.python.org/packages/source/p/pip/'], + }), + ('nose', '1.3.7', { + 'source_urls': ['https://pypi.python.org/packages/source/n/nose/'], + }), +] + +#modluafooter = 'add_property("state","experimental")' + +moduleclass = 'lang'