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
Tracking issue for further build system improvements #16293
Comments
(maybe build system, but not meson-specific, not sure) For non-editable
|
Can you open as a new issue instead @tylerjereddy? I think I know what it is, and it needs a fix in |
Okie, I opened gh-16300 for that. In the meanwhile, I can iterate on release notes just fine with the old setuptools install. |
FYI, support for editable installs (i.e., |
Youhou 🎉 testing this first thing tomorrow, thanks |
Thanks. Does this mean that we can follow the instructions of the quickstart up to It says "Windows and MacOS are not yet fully supported, but that is actively being worked on." Do you think it's worth trying on Windows yet? |
Almost - quickstart until that point, and then use
That should all work, and was not specific to the editable builds. I'll go delete that sentence. |
Great. Suppose I'm starting with a fresh Windows machine - would I still need to set up compilers (from MSYS2 and Microsoft Visual Studio) as I did in the past, or will conda install ones that will work? And I've always needed to build OpenBLAS and set that up in |
|
@rgommers I tried to play with this. Importing SciPy seems fine, but running tests raises some error
And trying to bypass the error with
I am trying to build all from a clean install. Maybe I had some leftovers (I did remove various pyc and caches) |
@tupui does it help if, after doing the editable install, you first move to another directory (i.e., |
@tylerjereddy this is working, but as the log shows it's using files in the
This is not good as this would prevent the debugger from working. I mean it's not improving thing, I can still debug if I put a breakpoint in the |
Can we move this discussion to mesonbuild/meson-python#47? That's the right place, and an identical question got raised there. |
There's a new implementation for editable installs in |
This meant to follow the pip quickstart until that point, I suppose?
Will it be possible to extend |
Perhaps, not sure yet until we have some experience with how editable installs work under the hood. |
@rgommers sorry if this is not quite the correct issue, but it is related to build system stuff--do you have any specific guideline on how I should treat the Python From: https://peps.python.org/pep-0693/
I suppose that's before our |
3.12 is in alpha, should we add it to CI now, or once it hits beta? EDIT: FWIW I ran the test suite in a Linux VM with python3.12, all tests pass. |
Good question. I think we're okay to drop For Python 3.12, I think it's too early. There are too many issues with Cython or build system stuff breaking, and there are no real upsides to start testing now (I don't think it'll catch any SciPy regressions). I'd start testing in June/July, not before.
This works pretty smoothly now with
I think it's healthy to have |
FWIW, conda-forge on windows is not ready for meson builds. But I guess we'd survive if we dropped windows builds for the next release (though realistically, I'd probably try to patch it back in). |
I looked at moving some of the jobs from Azure. My glances at the config file weren't easy on the eye - next to no comments in the files |
Ugh yes, forgot about the conda-forge Windows build - adding it to the list above. We'd need to hurry that one along. Okay, better plan: let's do the CI migration we need and move everything to Meson - but keep the
I'd rewrite them from scratch to be honest, based on only the info of what we're trying to test. We migrated Travis CI to Azure last time around and that made the migration quick but the end result pretty much unreadable. |
If there's info on what we're trying to test I can get started on the transfer. |
Let me post on the most relevant issue for this topic, which is gh-15814. |
After switching to Meson by default in gh-16187 and closing the RFC for that switch in gh-13615, here is a summary of next steps to improve our build system support. Roughly in order of priority:
pkg-config
), see Improve BLAS/LAPACK support: dependency detection, UX, and ILP64 #17244 and Feature: MKL dependency mesonbuild/meson#2835numpy.distutils
based CI job, and not supported yet in the Meson-based build. See Improve BLAS/LAPACK support: dependency detection, UX, and ILP64 #17244pip
,pypa/build
or similar: Passing through project-specific config options mesonbuild/meson-python#54.pyx.c
file mesonbuild/meson#8961 (will allow a much simpler use of Cython inmeson.build
files)__init__.py
's anymore, which can be done by merging this PR: MRG: add --module-name argument to cython command cython/cython#4548numpy
is >= that of the numpy we built against: UX for constraining build-time and runtime dependencies mesonbuild/meson-python#29. Note that thenumpy.distutils
based build never did this, but it's a correctness issue that can pop up in practice. EDIT: fixed by design innumpy
now that we're building against2.0.0.dev0
. Once 1.25.0 is our lowest supported version, this is completely fixed.dependency('numpy')
work in Meson: Adding numpy as a dependency with custom lookup mesonbuild/meson#9598.This will for us only result in a minor cleanup inEDIT: this is important for cross-compilation!meson.build
files, but it's nice to have for other projects that are adopting Meson - one less thing to figure out for them.The text was updated successfully, but these errors were encountered: