pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: python version confusion with cython (Re: math/py-scipy)
Agree with your frustrations...
On Thu, Oct 12, 2023, at 4:47 AM, Dr. Thomas Orgis wrote:
> Am Thu, 12 Oct 2023 11:00:19 +0200
> schrieb "Dr. Thomas Orgis" <thomas.orgis%uni-hamburg.de@localhost>:
>
>> OK, I am trying to test this and stumble over something along
>>
>> https://github.com/scipy/scipy/issues/17808
>>
>> I don't have cython or cython3 in my pkgsrc prefix. I do have
>> $PREFIX/bin/cython-3.10 (and cythonize-3.10). We have cython handled
>> along with all usual python cruft with multiversion support.
>
> I tried to adapt some SUBST_SED that we already have for pythran, but
> cython is different, as it appears both as language and compiler name
> in meson.build.
>
> How does that build for anyone? Is a cython in /usr/bin found on Linux?
> I consistently get something along
>
I have the following, and it is successfully picking up the tools installed by pkgsrc. I have the pkgsrc bin and sbin at the front of my path, if that makes a difference. But, I see it is finding "cython-3.11"
==> Building for py311-scipy-1.11.3
* Building wheel...
+ meson setup /home/matthew/pkgsrc/work/math/py-scipy/work/scipy-1.11.3 /home/matthew/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-qq8ecdav -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dblas=openblas -Dlapack=openblas -
-native-file=/home/matthew/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-qq8ecdav/meson-python-native-file.ini
The Meson build system
Version: 1.2.2
Source dir: /home/matthew/pkgsrc/work/math/py-scipy/work/scipy-1.11.3
Build dir: /home/matthew/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-qq8ecdav
Build type: native build
Project name: SciPy
Project version: 1.11.3
C compiler for the host machine: cc (gcc 10.2.1 "gcc (Debian 10.2.1-6) 10.2.1 20210110")
C linker for the host machine: cc ld.bfd 2.35.2
C++ compiler for the host machine: c++ (gcc 10.2.1 "g++ (Debian 10.2.1-6) 10.2.1 20210110")
C++ linker for the host machine: c++ ld.bfd 2.35.2
Cython compiler for the host machine: cython-3.11 (cython 0.29.36)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/home/matthew/pkgsrc/install.20231002/bin/python3.11)
Found pkg-config: /home/matthew/pkgsrc/work/math/py-scipy/work/.tools/bin/pkg-config (2.0.3)
Run-time dependency python found: YES 3.11
Program cython-3.11 found: YES (/home/matthew/pkgsrc/install.20231002/bin/cython-3.11)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Library m found: YES
Fortran compiler for the host machine: gfortran (gcc 10.2.1 "GNU Fortran (Debian 10.2.1-6) 10.2.1 20210110")
Fortran linker for the host machine: gfortran ld.bfd 2.35.2
Compiler for Fortran supports arguments -Wno-conversion: YES
Checking if "-Wl,--version-script" : links: YES
Program pythran-3.11 found: YES (/home/matthew/pkgsrc/install.20231002/bin/pythran-3.11)
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency xsimd found: NO (tried pkgconfig and cmake)
Run-time dependency threads found: YES
Library npymath found: YES
Library npyrandom found: YES
pybind11-config found: YES (/home/matthew/pkgsrc/install.20231002/bin/pybind11-config) 2.11.1
Run-time dependency pybind11 found: YES 2.11.1
Run-time dependency openblas found: YES 0.3.24
> ===> Building for py310-scipy-1.11.3
> * Building wheel...
> + meson setup
> /data/projekte/pkgsrc/work/math/py-scipy/work/scipy-1.11.3
> /data/projekte/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-ps9ehs0i/build
> -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md
> -Dblas=openblas_openmp -Dlapack=openblas_openmp
> --native-file=/data/projekte/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-ps9ehs0i/build/meson-python-native-file.ini
> The Meson build system
> Version: 1.1.0
> Source dir: /data/projekte/pkgsrc/work/math/py-scipy/work/scipy-1.11.3
> Build dir:
> /data/projekte/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-ps9ehs0i/build
> Build type: native build
> Project name: SciPy
> Project version: 1.11.3
> C compiler for the host machine: cc (gcc 11.4.0 "gcc (Ubuntu
> 11.4.0-1ubuntu1~22.04) 11.4.0")
> C linker for the host machine: cc ld.bfd 2.38
> C++ compiler for the host machine: c++ (gcc 11.4.0 "g++ (Ubuntu
> 11.4.0-1ubuntu1~22.04) 11.4.0")
> C++ linker for the host machine: c++ ld.bfd 2.38
>
> ../../meson.build:1:0: ERROR: Unknown compiler(s): [['cython'], ['cython3']]
> The following exception(s) were encountered:
> Running `cython -V` gave "[Errno 2] No such file or directory: 'cython'"
> Running `cython3 -V` gave "[Errno 2] No such file or directory: 'cython3'"
>
> A full log can be found at
> /data/projekte/pkgsrc/work/math/py-scipy/work/scipy-1.11.3/.mesonpy-ps9ehs0i/build/meson-logs/meson-log.txt
>
> ERROR Backend subprocess exited when trying to invoke build_wheel
> *** Error code 1
>
>
> Why not everyone?
>
>
> Alrighty then,
>
> Thomas
>
> --
> Dr. Thomas Orgis
> HPC @ Universität Hamburg
--
matthewd%fastmail.us@localhost
Home |
Main Index |
Thread Index |
Old Index