Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Dec 21, 2022

draft PR, since it's not working as intended yet

The meson setup build command is correct when building on top of foss/2022b:

The Meson build system
Version: 0.64.0
Source dir: /tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3
Build dir: /tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3/build
Build type: native build
Project name: SciPy
Project version: 1.9.3
C compiler for the host machine: gcc (gcc 12.2.0 "gcc (GCC) 12.2.0")
C linker for the host machine: gcc ld.bfd 2.39
...
Run-time dependency flexiblas found: YES 3.2.1
Dependency flexiblas found: YES 3.2.1 (cached)

but the the pip install command also calls meson setup with different arguments, resulting in a direct link with OpenBLAS:

Using pip 22.3.1 from /software/Python/3.10.8-GCCcore-12.2.0/lib/python3.10/site-packages/pip (python 3.10)
Processing /tmp/vsc40023/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3
  Preparing metadata (pyproject.toml): started
  Running command Preparing metadata (pyproject.toml)
  + meson setup --prefix=/software/Python/3.10.8-GCCcore-12.2.0 /tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3 /tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3/.mesonpy-znuvtok_/build --native-file=/tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
  The Meson build system
  Version: 0.64.0
  Source dir: /tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3
  Build dir: /tmp/easybuild_build/SciPybundle/2022.11/gfbf-2022.10/scipy/scipy-1.9.3/.mesonpy-znuvtok_/build
  Build type: native build
  Project name: SciPy
  Project version: 1.9.3
  C compiler for the host machine: gcc (gcc 12.2.0 "gcc (GCC) 12.2.0")
  C linker for the host machine: gcc ld.bfd 2.39
  ...
  Run-time dependency openblas found: YES 0.3.21
  Dependency openblas found: YES 0.3.21 (cached)

So rather than running meson setup build before pip install (as suggested by the scipy docs), we probably need to switch to using meson install?

@boegel
Copy link
Member Author

boegel commented Mar 1, 2023

superseded by #2862

@boegel boegel closed this Mar 1, 2023
@boegel boegel deleted the scipy_1.9_meson branch March 1, 2023 08:38
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.

1 participant