Skip to content

Commit

Permalink
adding easyconfigs: Spyder-6.0.1-gfbf-2023b.eb, Deprecated-1.2.14-gfb…
Browse files Browse the repository at this point in the history
…f-2023b.eb, PyQt-builder-1.16.4-GCCcore-13.2.0.eb, PyQt5-5.15.10-GCCcore-13.2.0.eb, Qtconsole-5.6.0-GCCcore-13.2.0.eb, QtPy-2.4.1-GCCcore-13.2.0.eb, Rtree-1.2.0-GCCcore-13.2.0.eb, wrapt-1.16.0-gfbf-2023b.eb
  • Loading branch information
pavelToman committed Oct 17, 2024
1 parent 4d1ea07 commit 11bc9c0
Show file tree
Hide file tree
Showing 8 changed files with 456 additions and 0 deletions.
29 changes: 29 additions & 0 deletions easybuild/easyconfigs/d/Deprecated/Deprecated-1.2.14-gfbf-2023b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# author: Denis Kristak (INUITS)
# update: Pavel Tománek (INUITS)

easyblock = 'PythonBundle'

name = 'Deprecated'
version = '1.2.14'

homepage = 'https://github.com/tantale/deprecated'
description = "If you need to mark a function or a method as deprecated, you can use the @deprecated decorator."

toolchain = {'name': 'gfbf', 'version': '2023b'}

dependencies = [
('Python', '3.11.5'),
('wrapt', '1.16.0'),
]


use_pip = True
sanity_pip_check = True

exts_list = [
(name, version, {
'checksums': ['e5323eb936458dccc2582dc6f9c322c852a775a27065ff2b0c4970b9d53d01b3'],
}),
]

moduleclass = 'tools'
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Thomas Hoffmann, EMBL Heidelberg, [email protected], 2024/01
easyblock = 'PythonBundle'

name = 'PyQt-builder'
version = '1.16.4'

homepage = 'https://github.com/Python-PyQt/PyQt-builder'
description = """PyQt-builder is the PEP 517 compliant build system for PyQt and projects that
extend PyQt. It extends the SIP build system and uses Qt's qmake to perform the
actual compilation and installation of extension modules.
"""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}

builddependencies = [('binutils', '2.40')]
dependencies = [
('Python', '3.11.5'),
('SIP', '6.8.3'),
]


exts_list = [
('pyqt_builder', version, {
'modulename': 'pyqtbuild',
'checksums': ['4515e41ae379be2e54f88a89ecf47cd6e4cac43e862c4abfde18389c2666afdf'],
}),
]

use_pip = True
sanity_pip_check = True

sanity_check_paths = {
'files': [],
'dirs': ['lib/python%(pyshortver)s/'],
}

moduleclass = 'lang'
112 changes: 112 additions & 0 deletions easybuild/easyconfigs/p/PyQt5/PyQt5-5.15.10-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
easyblock = 'PythonBundle'

name = 'PyQt5'
version = '5.15.10'

homepage = 'https://www.riverbankcomputing.com/software/pyqt'
description = """PyQt5 is a set of Python bindings for v5 of the Qt application framework from The Qt Company.
This bundle includes PyQtWebEngine, a set of Python bindings for The Qt Company’s Qt WebEngine framework."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}
toolchainopts = {'cstd': 'c++11'}

builddependencies = [
('binutils', '2.40'),
('PyQt-builder', '1.16.4'),
]
dependencies = [
('Python', '3.11.5'),
('Qt5', '5.15.13'),
]
local_sipdir = '%(installdir)s/share/sip'

local_pylibdir = '%(installdir)s/lib/python%(pyshortver)s/site-packages'

local_setup_env = "export PATH=%(installdir)s/bin:$PATH && "
local_setup_env += "export PYTHONPATH=%s:$PYTHONPATH && " % local_pylibdir


local_sip_configopts_common = [
"--no-make",
"--jobs %(parallel)s",
"--qmake-setting 'QMAKE_CXXFLAGS+=$$(CFLAGS)'",
"--qmake-setting 'QMAKE_CFLAGS+=$$(CFLAGS)'",
"--qmake-setting 'QMAKE_LFLAGS+=$$(LDFLAGS)'",
"--api-dir %(installdir)s/qsci",
"--scripts-dir %(installdir)s/bin",
"--target-dir %s" % local_pylibdir,
]

local_pyqt5_configopts = [
"--confirm-license",
"--no-designer-plugin",
"--no-qml-plugin",
] + local_sip_configopts_common

local_pyqtwebengine_configopts = local_sip_configopts_common
default_easyblock = 'PythonPackage'

components = [
('%s_sip' % name, '12.13.0', {
'source_urls': [PYPI_SOURCE],
'sources': [SOURCE_TAR_GZ],
'start_dir': '%(name)s-%(version)s',
'use_pip': True,
'checksums': ['7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91'],
}),
(name, version, {
'source_urls': [PYPI_SOURCE],
'sources': [SOURCE_TAR_GZ],
'easyblock': 'ConfigureMake',
'configure_cmd': 'sip-build',
'start_dir': '%(name)s-%(version)s',
'configure_without_installdir': True,
'preconfigopts': local_setup_env,
'configopts': ' '.join(local_pyqt5_configopts),
'prebuildopts': local_setup_env + "cd build && ",
'preinstallopts': "cd build && ",
'checksums': ['d46b7804b1b10a4ff91753f8113e5b5580d2b4462f3226288e2d84497334898a'],
}),
('PyQtWebEngine', '5.15.7', {
'source_urls': [PYPI_SOURCE],
'sources': [SOURCE_TAR_GZ],
'easyblock': 'ConfigureMake',
'configure_cmd': 'sip-build',
'start_dir': '%(name)s-%(version)s',
'configure_without_installdir': True,
'preconfigopts': local_setup_env,
'configopts': ' '.join(local_pyqtwebengine_configopts),
'prebuildopts': local_setup_env + "cd build && ",
'preinstallopts': "cd build && ",
'checksums': ['f121ac6e4a2f96ac289619bcfc37f64e68362f24a346553f5d6c42efa4228a4d'],
})
]

postinstallcmds = [
'mkdir %(installdir)s/share',
'ln -s --relative %s/%%(name)s/bindings %s' % (local_pylibdir, local_sipdir)
]

sanity_check_paths = {
'files': ['bin/%s' % x for x in [
'pyrcc5', 'pyuic5', 'pylupdate5']],
'dirs': ['lib/python%(pyshortver)s/site-packages', 'qsci'],
}

use_pip = True

sanity_pip_check = True

sanity_check_commands = [
"python -c 'import %(name)s.QtCore'",
"python -c 'import %(name)s.QtWebEngineWidgets'",
"pyuic5 --help",
"pylupdate5 -version 2>&1 | grep 'pylupdate5 v%(version)s'",
"pyrcc5 -version 2>&1 | grep 'pyrcc5 v%(version)s'",
]

modextrapaths = {
'QT_INSTALL_DATA': 'qsci',
}

moduleclass = 'vis'
29 changes: 29 additions & 0 deletions easybuild/easyconfigs/q/QtPy/QtPy-2.4.1-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
easyblock = 'PythonPackage'

name = 'QtPy'
version = '2.4.1'

homepage = "https://github.com/spyder-ide/qtpy"
description = """QtPy is a small abstraction layer that lets you write applications using a single API call to
either PyQt or PySide. It provides support for PyQt5, PyQt4, PySide2 and PySide."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}

sources = [SOURCE_TAR_GZ]
checksums = ['a5a15ffd519550a1361bdc56ffc07fda56a6af7292f17c7b395d4083af632987']

builddependencies = [
('binutils', '2.40'),
]

dependencies = [
('Python', '3.11.5'),
('PyQt5', '5.15.10'),
('Python-bundle-PyPI', '2023.10'),
]

use_pip = True
download_dep_fail = True
sanity_pip_check = True

moduleclass = 'vis'
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
easyblock = 'PythonPackage'

name = 'Qtconsole'
version = '5.6.0'

homepage = 'https://jupyter.org/'
description = """A rich Qt-based console for working with Jupyter kernels, supporting rich media
output, session export, and more.
The Qtconsole is a very lightweight application that largely feels like a
terminal, but provides a number of enhancements only possible in a GUI, such as
inline figures, proper multiline editing with syntax highlighting, graphical
calltips, and more."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}

sources = [SOURCELOWER_TAR_GZ]
checksums = ['4c82120a3b53a3d36e3f76e6a1a26ffddf4e1ce2359d56a19889c55e1d73a436']

builddependencies = [('binutils', '2.40')]

dependencies = [
('Python', '3.11.5'),
('IPython', '8.17.2'),
('QtPy', '2.4.1'),
('Jupyter-bundle', '20240522'),
]

use_pip = True
download_dep_fail = True
sanity_pip_check = True

moduleclass = 'vis'
28 changes: 28 additions & 0 deletions easybuild/easyconfigs/r/Rtree/Rtree-1.2.0-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
easyblock = 'PythonPackage'

name = 'Rtree'
version = '1.2.0'

homepage = 'https://toblerity.org/rtree/'
description = """Rtree is a ctypes Python wrapper of libspatialindex that provides a number of advanced spatial
indexing features for the spatially curious Python user."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}

sources = [SOURCE_TAR_GZ]
checksums = ['f5145f7852bf7f95c126fb16bf1a4c2ca9300ae151b07f8a0f7083ea47912675']

builddependencies = [
('binutils', '2.40'),
]

dependencies = [
('Python', '3.11.5'),
('libspatialindex', '1.9.3'),
]

use_pip = True
sanity_pip_check = True
download_dep_fail = True

moduleclass = 'data'
Loading

0 comments on commit 11bc9c0

Please sign in to comment.