Quellcode durchsuchen

Sphinx & protobuf modules

Pierre-Yves Barriat vor 6 Jahren
Ursprung
Commit
348f6a60a0

+ 26 - 0
intel-2018/Pygments-2.1.3-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,26 @@
+easyblock = 'PythonPackage'
+
+name = 'Pygments'
+version = '2.1.3'
+versionsuffix = '-Python-%(pyver)s'
+
+homepage = 'http://pygments.org/'
+description = """Generic syntax highlighter suitable for use in code hosting, forums, wikis or other applications
+ that need to prettify source code."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [PYPI_SOURCE]
+sources = [SOURCE_TAR_GZ]
+
+
+dependencies = [
+    ('Python', '2.7.13'),
+]
+
+sanity_check_paths = {
+    'files': ['bin/pygmentize'],
+    'dirs': ['lib/python%(pyshortver)s/site-packages/%(name)s-%(version)s-py%(pyshortver)s.egg'],
+}
+
+moduleclass = 'devel'

+ 77 - 0
intel-2018/Sphinx-1.4.8-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,77 @@
+easyblock = 'Bundle'
+
+name = 'Sphinx'
+version = '1.4.8'
+
+homepage = 'http://sphinx.pocoo.org/'
+description = """Sphinx is a tool that makes it easy to create intelligent and beautiful documentation.
+ It was originally created for the new Python documentation, and it has excellent facilities for the 
+ documentation of Python projects, but C/C++ is already supported as well, and it is planned to add 
+ special support for other languages as well."""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+# this is a bundle of Python packages
+exts_defaultclass = 'PythonPackage'
+
+pyver = '2.7.13'
+pyshortver = '.'.join(pyver.split('.')[0:2])
+versionsuffix = '-Python-%s' % pyver
+
+dependencies = [
+    ('Python', pyver),
+    ('Pygments', '2.1.3', '-Python-%(pyver)s'),
+    ('requests', '2.13.0', versionsuffix),
+]
+
+exts_list = [
+    ('imagesize', '0.7.1', {
+        'source_urls': ['https://pypi.python.org/packages/source/i/imagesize/'],
+    }),
+    ('MarkupSafe', '0.23', {
+        'source_urls': ['https://pypi.io/packages/source/M/MarkupSafe/'],
+        'modulename': 'markupsafe',
+    }),
+    ('Docutils', '0.12', {
+        'source_tmpl': 'docutils-%(version)s.tar.gz',
+        'source_urls': [('http://sourceforge.net/projects/docutils/files/docutils/%(version)s/', 'download')],
+    }),
+    ('Jinja2', '2.8', {
+        'source_urls': ['https://pypi.python.org/packages/source/J/Jinja2/'],
+    }),
+    ('snowballstemmer', '1.2.1', {
+        'source_urls': ['https://pypi.python.org/packages/source/s/snowballstemmer/'],
+    }),
+    ('Babel', '2.3.4', {
+        'source_urls': ['https://pypi.python.org/packages/source/B/Babel/'],
+    }),
+    ('alabaster', '0.7.8', {
+        'source_urls': ['https://pypi.python.org/packages/source/a/alabaster/'],
+    }),
+    (name, version, {
+        'source_urls': ['https://pypi.python.org/packages/source/S/Sphinx/'],
+        'patches': ['Sphinx-%s-pdflatex_failing_tests.patch' % version],
+    }),
+    # sphinx_rtd_theme depends on Sphinx, and should be there to make the tests work
+    ('sphinx_rtd_theme', '0.1.10a0', {
+        'source_urls': ['https://pypi.python.org/packages/source/s/sphinx_rtd_theme/'],
+    }),
+]
+
+# Sphinx unit tests *after* installing extensions
+postinstallcmds = [' && '.join([
+    "cd %(builddir)s/%(name)s/%(name)s-%(version)s/",
+    "PYTHONPATH=%(installdir)s/lib/python%(pyshortver)s/site-packages/:$PYTHONPATH make test",
+])]
+
+# specify that Bundle easyblock should run a full sanity check, rather than just trying to load the module
+full_sanity_check = True
+
+sanity_check_paths = {
+    'files': ['bin/sphinx-%s' % x for x in ['apidoc', 'autogen', 'build', 'quickstart']],
+    'dirs': ['lib/python%(pyshortver)s/site-packages'],
+}
+
+modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}
+
+moduleclass = 'vis'

+ 24 - 0
intel-2018/protobuf-3.4.0-intel-2018.eb

@@ -0,0 +1,24 @@
+easyblock = 'ConfigureMake'
+
+name = 'protobuf'
+version = '3.4.0'
+
+homepage = 'https://github.com/google/protobuf/'
+description = """Google Protocol Buffers"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = ['https://github.com/google/protobuf/archive/v%(version)s/']
+sources = [SOURCE_TAR_GZ]
+checksums = ['f6600abeee3babfa18591961a0ff21e7db6a6d9ef82418a261ec4fee44ee6d44']
+
+builddependencies = [('Autotools', '20170619')]
+
+preconfigopts = "./autogen.sh && "
+
+sanity_check_paths = {
+    'files': ['bin/protoc', 'lib/libprotobuf.%s' % SHLIB_EXT],
+    'dirs': [],
+}
+
+moduleclass = 'devel'

+ 24 - 0
intel-2018/requests-2.13.0-intel-2018-Python-2.7.13.eb

@@ -0,0 +1,24 @@
+easyblock = 'PythonPackage'
+
+name = 'requests'
+version = '2.13.0'
+versionsuffix = '-Python-%(pyver)s'
+
+homepage = 'https://pypi.python.org/pypi/requests'
+description = """Python http for humans"""
+
+toolchain = {'name': 'intel', 'version': '2018'}
+
+source_urls = [PYPI_LOWER_SOURCE]
+sources = [SOURCELOWER_TAR_GZ]
+
+dependencies = [
+    ('Python', '2.7.13'),
+]
+
+sanity_check_paths = {
+    'files': [],
+    'dirs': ['lib/python%(pyshortver)s/site-packages'],
+}
+
+moduleclass = 'devel'