Skip to content

pythonpackage: Limit ulimit stack size when unlimited#4144

Merged
Micket merged 3 commits into
easybuilders:developfrom
Thyre:20260528144259_new_pr_pythonpackage
May 29, 2026
Merged

pythonpackage: Limit ulimit stack size when unlimited#4144
Micket merged 3 commits into
easybuilders:developfrom
Thyre:20260528144259_new_pr_pythonpackage

Conversation

@Thyre
Copy link
Copy Markdown
Collaborator

@Thyre Thyre commented May 28, 2026

(created using eb --new-pr)

Comment thread easybuild/easyblocks/generic/pythonpackage.py Outdated
@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented May 28, 2026

Test report by @Thyre

Overview of tested easyconfigs (in order)

  • SUCCESS lit-18.1.8-GCCcore-14.3.0.eb

Build succeeded for 1 out of 1 (total: 20 secs) (1 easyconfigs in total)
ZAM054 - Linux Zorin OS 18, x86_64, 12th Gen Intel(R) Core(TM) i7-1260P (skylake), 1 x NVIDIA NVIDIA GeForce MX550, 580.159.03, Python 3.12.3
See https://gist.github.com/Thyre/282674757d6d1e5724d971bb0683e3ee for a full test report.

@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented May 28, 2026

Test report by @Thyre

Overview of tested easyconfigs (in order)

  • SUCCESS lit-18.1.8-GCCcore-14.3.0.eb

Build succeeded for 1 out of 1 (total: 18 secs) (1 easyconfigs in total)
ZAM054 - Linux Zorin OS 18, x86_64, 12th Gen Intel(R) Core(TM) i7-1260P (skylake), 1 x NVIDIA NVIDIA GeForce MX550, 580.159.03, Python 3.12.3
See https://gist.github.com/Thyre/4496bf609a19ee2eb180277c8c257f75 for a full test report.

Comment thread easybuild/easyblocks/generic/pythonpackage.py Outdated
@Thyre

This comment was marked as resolved.

@Thyre Thyre force-pushed the 20260528144259_new_pr_pythonpackage branch from 679f385 to cd8f3aa Compare May 28, 2026 13:09
@Thyre Thyre requested a review from boegel May 28, 2026 13:11
@Thyre Thyre changed the title Draft: Limit ulimit stack size when unlimited pythonpackage: Limit ulimit stack size when unlimited May 28, 2026
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Comment thread easybuild/easyblocks/generic/pythonpackage.py Outdated
Comment thread easybuild/easyblocks/generic/pythonpackage.py Outdated
Co-authored-by: Jasper Grimm <65227842+jfgrimm@users.noreply.github.com>
@jfgrimm jfgrimm added this to the next release (5.3.1?) milestone May 29, 2026
@Thyre
Copy link
Copy Markdown
Collaborator Author

Thyre commented May 29, 2026

Test report by @Thyre

Overview of tested easyconfigs (in order)

  • SUCCESS numba-0.62.0-foss-2025b.eb

Build succeeded for 1 out of 1 (total: 22 mins 10 secs) (1 easyconfigs in total)
Linux - Linux Arch Linux UNKNOWN, x86_64, AMD Ryzen 7 7800X3D 8-Core Processor (zen4), 1 x AMD Navi 48 [Radeon RX 9070/9070 XT/9070 GRE] (device id: 0x7550, gfx: gfx1201, driver: Linuxversion7.0.10-arch1-1(linux@archlinux)(gcc(GCC)16.1.120260430,GNUld(GNUBinutils)2.46.0)#1SMPPREEMPT_DYNAMICSat,23May202614:21:20+0000), 1 x AMD Raphael (device id: 0x164e, gfx: gfx1036, driver: Linuxversion7.0.10-arch1-1(linux@archlinux)(gcc(GCC)16.1.120260430,GNUld(GNUBinutils)2.46.0)#1SMPPREEMPT_DYNAMICSat,23May202614:21:20+0000), Python 3.14.5
See https://gist.github.com/Thyre/3d9d93a69000a5d7f1e7280fb20f55a1 for a full test report.


Used EasyConfig:

Details
easyblock = 'PythonBundle'

name = 'numba'
version = '0.62.0'

homepage = 'https://numba.pydata.org/'
description = """Numba is an Open Source NumPy-aware optimizing compiler for
Python sponsored by Continuum Analytics, Inc. It uses the remarkable LLVM
compiler infrastructure to compile Python syntax to machine code."""

toolchain = {'name': 'foss', 'version': '2025b'}
toolchainopts = {'pic': True}

builddependencies = [
    ('CMake', '4.0.3'),
    ('LLVM', '20.1.8'),
]

dependencies = [
    ('Python', '3.13.5'),
    ('SciPy-bundle', '2025.07'),
    ('Z3', '4.15.1'),
    ('zstd', '1.5.7'),
]

local_llvmlite_preinstallopts = "export LLVM_CONFIG=${EBROOTLLVM}/bin/llvm-config && "
local_llvmlite_preinstallopts += "sed -i 's/llvm_config, \"--system-libs/llvm_config, \"--link-static --system-libs/' "
local_llvmlite_preinstallopts += "ffi/build.py && "

exts_default_options = {
    'ulimit': '8192',
}

exts_list = [
    ('llvmlite', '0.45.0', {
        'preinstallopts': local_llvmlite_preinstallopts,
        'checksums': ['ceb0bcd20da949178bd7ab78af8de73e9f3c483ac46b5bef39f06a4862aa8336'],
        'testinstall': True,
        'runtest': 'python -m llvmlite.tests',
    }),
    (name, version, {
        'checksums': ['2afcc7899dc93fefecbb274a19c592170bc2dbfae02b00f83e305332a9857a5a'],
        'testinstall': True,
        'runtest': 'cd %(builddir)s && python -m numba.runtests -m %(parallel)s',
    }),
]

fix_python_shebang_for = ['bin/*']

sanity_check_paths = {
    'files': ['bin/numba'],
    'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

sanity_check_commands = [
    'numba --help',
]

moduleclass = 'lang'

Copy link
Copy Markdown
Contributor

@Micket Micket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Micket
Copy link
Copy Markdown
Contributor

Micket commented May 29, 2026

Test report by @Micket

Overview of tested easyconfigs (in order)

  • SUCCESS Cython-3.2.4-GCCcore-14.3.0.eb

Build succeeded for 1 out of 1 (total: 4 mins 10 secs) (4 easyconfigs in total)
vera-icelake-build - Linux Rocky Linux 9.6, x86_64, Intel(R) Xeon(R) Silver 4316 CPU @ 2.30GHz, Python 3.9.21
See https://gist.github.com/Micket/bfa0c967a212033a0f80131e872d52f4 for a full test report.

@Micket
Copy link
Copy Markdown
Contributor

Micket commented May 29, 2026

Test report by @Micket

Overview of tested easyconfigs (in order)

  • SUCCESS Markdown-3.8.2-GCCcore-14.3.0.eb

  • SUCCESS Pillow-11.3.0-GCCcore-14.3.0.eb

  • SUCCESS maturin-1.10.2-GCCcore-14.3.0.eb

Build succeeded for 3 out of 3 (total: 7 mins 10 secs) (3 easyconfigs in total)
vera-icelake-build - Linux Rocky Linux 9.6, x86_64, Intel(R) Xeon(R) Silver 4316 CPU @ 2.30GHz, Python 3.9.21
See https://gist.github.com/Micket/667667f85c4f059b85d9cf76b191c2fd for a full test report.

@Micket Micket merged commit 26f2c6a into easybuilders:develop May 29, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants