-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.15.0: issue on building numpy
#601
Comments
Well, you haven't actually provided enough information to debug the issue. What source tarball of numpy are you using, for example? |
Please provide the exact install command used and a full build log with complete traceback. |
My reading of the coffee grounds is that this is due to two pip issues interacting:
Solutions: either build with build isolation disabled (pip's If my suppositions are confirmed, this is the second time in a not too long time that someone is bitten by this pip bug. We could add a warning if we detect that the build is initiated by a known-to-be-broken pip version. I'll see if there is a reliable way to do this. |
Here it is (one line more only which I've been thinking is obvious 😋): + /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
* Building wheel...
('\x1b[31m',)meson-python: error: Could not find meson version 0.63.3 or newer, found .
ERROR Backend subprocess exited when trying to invoke build_wheel So I'm using pep517 based build. |
|
Please have look one more time on ticket title. |
Nevertheless .. what can I do about diagnose this issue? 🤔 |
My reading of the coffee grounds was not that accurate, apparently. From the error message, it seems that running |
By any change, do you have a |
Or an uninitialized git submodule? This is almost certainly user error, but without all the details it's hard to diagnose. |
Nope .. meson is on the path [tkloczko@pers-jacek SPECS]$ command -v meson
/usr/bin/meson
One sec .. so you want to say that [tkloczko@pers-jacek SPECS]$ pip show meson
Name: meson
Version: 1.4.0
Summary: A high performance build system
Home-page: https://mesonbuild.com
Author: Jussi Pakkanen
Author-email: [email protected]
License: Apache License, Version 2.0
Location: /usr/lib/python3.9/site-packages
Requires:
Required-by: Really? 🤔 |
It is really not possible to find what you are doing wrong unless you provide all the required information and stop answering only selected questions and reading only parts of our answers.
No. No one said that. It is NumPy that uses a vendored copy of meson which includes some features not yet present in any meson release. |
Hmm ,. but where do you see that vendored meson in Message which I've quoted is printed by Did you try to reproduce reported issue? 🤔 |
In the very first reply to this ticket, I said:
I'm still waiting for an answer. I know exactly what the problem is, and I knew it all along, I just want @kloczek to provide the basics of a bug report for once to prove it. Anyone else is of course free to theorize based on incomplete information, but my methodology has a reason and you might be wise to follow it... |
https://github.com/numpy/numpy/tree/main/vendored-meson
Absolutely. And there are CI jobs that build NumPy and they do not reproduce the issue. Therefore, it must be something specific to your setup. However, you refuse to provide any kind of useful detail about it. Therefore, it is impossible to help you. |
You could have said. I would not have thrown away all this time trying to get more details 😄 |
Holly I'm using tar ball autogenerated from git tag. OK closing. |
In retrospect it might have been a mistake. I was originally trying to force the issue by demanding a properly detailed bug report before continuing further, but I didn't consider that others would also try to figure out the cause based on missing details. (@rgommers' latest comment got it as well. It's very clearly the wrong source code being used.) |
BTW maybe it is possible to print a bit better mesaże that it was not possible to find meson cli passed over pyproject.toml? 🤔 |
OK that was my pure fault. |
As I'm working on whole distribution it wold be in my case way better to test regular meson installed in system image (as yet another opportunity tu test it. --- a/pyproject.toml
+++ b/pyproject.toml
@@ -181,15 +181,9 @@
config-settings = "setup-args=--vsenv setup-args=-Dallow-noblas=true"
repair-wheel-command = ""
-[tool.meson-python]
-meson = 'vendored-meson/meson/meson.py'
-
[tool.spin]
package = 'numpy'
-[tool.spin.meson]
-cli = 'vendored-meson/meson/meson.py'
-
[tool.spin.commands]
"Build" = [
".spin/cmds.py:build", I was able to pass meson detection but looks like meson fails + /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
* Building wheel...
+ meson setup /home/tkloczko/rpmbuild/BUILD/numpy-1.26.4 /home/tkloczko/rpmbuild/BUILD/numpy-1.26.4/.mesonpy-vca7x9cm -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/home/tkloczko/rpmbuild/BUILD/numpy-1.26.4/.mesonpy-vca7x9cm/meson-python-native-file.ini
The Meson build system
Version: 1.4.0
Source dir: /home/tkloczko/rpmbuild/BUILD/numpy-1.26.4
Build dir: /home/tkloczko/rpmbuild/BUILD/numpy-1.26.4/.mesonpy-vca7x9cm
Build type: native build
Project name: NumPy
Project version: 1.26.5
C compiler for the host machine: /usr/bin/gcc (gcc 14.0.1 "gcc (GCC) 14.0.1 20240316 (Red Hat 14.0.1-0)")
C linker for the host machine: /usr/bin/gcc ld.bfd 2.42.50.20240304
C++ compiler for the host machine: /usr/bin/g++ (gcc 14.0.1 "g++ (GCC) 14.0.1 20240316 (Red Hat 14.0.1-0)")
C++ linker for the host machine: /usr/bin/g++ ld.bfd 2.42.50.20240304
Cython compiler for the host machine: cython (cython 3.0.9)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/usr/bin/python3)
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.0
Run-time dependency python found: YES 3.9
Has header "Python.h" with dependency python-3.9: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
../meson_cpu/x86/meson.build:2:15: ERROR: Module "features" does not exist
A full log can be found at /home/tkloczko/rpmbuild/BUILD/numpy-1.26.4/.mesonpy-vca7x9cm/meson-logs/meson-log.txt
ERROR Backend subprocess exited when trying to invoke build_wheel |
NumPy uses a vendored Meson because it relies on functionality that has not been yet integrated upstream. |
Do you know is it any plan/someone is working on integrate those functionalities into regular meson? 🤔 |
I'm trying to build
numpy
1.26.4 in build env in which is installedmeson-python
and meson 1.4.0,On building
numpy
using pep517 based build looks likemeson-python
has issue with meson detectionIn mesonpy/init.py I see fragment responsible for printing that essage:
So looks like it tries to use
meson --version
command. In my case it returns:What could be wrong in this case? 🤔
The text was updated successfully, but these errors were encountered: