GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — BLD, TST: refactor test to use meson not setup.py, improve spin test -m ... by mattip · Pull Request #24153 · numpy/numpy Conversation
Member
This PR has two parts:
Marking as draft to also refactor
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Hmm. meson can be installed by pip, but what do we do about ninja? It is a hard requirement to run meson. I guess we should skip the build-a-module tests if ninja is not installed. Edit: nvrmind: ninja can be pip installed too! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c74cfaa to
b15a55f
Compare
|
Any ideas how to avoid but this seems to not work on pyodide even though the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The relevant tests are skipped. The problem is that |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah, that makes sense. It should already be present in most all CI runs (except for the ones with build isolation perhaps), because it's needed for building. It falls in the same category as compilers, pkg-config, etc. - I'd say it should not be in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
tl;dr this is an Ubuntu job, so just install it with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Kind of. "this" is also all wheel builds, which build in an isolated environment and then test. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
ninja is needed a bit everywhere. While it can be installed by apt and choco, it is not clear how to install it on macOS. Apparently there is no yum package of that name available in the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That sounds fine to me. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looking more closely at the ninja PyPI package, it seems like a valid wheel solution to provide a binary for all platforms. It is a shame I needed to add it everywhere |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is ready for review:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
On the topic of I've run into the same problem while working on pypa/cibuildwheel#1456 and I would like to fix it soon. There's a lot of complexity involved in convincing pip to behave correctly since it needs to run on the host linux Python but install stuff for emscripten Python. I think the correct way to fix this is to use |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This looks quite good, thanks Matti. I have only one significant comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| run_test() | ||
| { | ||
| # meson has a hard dependency on ninja, and we need meson to build |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
minor: it'd be good not to repeat the same comment multiple times; can you either remove this or change to something like "see note in pyproject.toml for why ninja is installed as a test requirement"?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| cwd=str(build_dir), | ||
| ) | ||
| # We don't want a wheel build, so do the steps in a controlled way | ||
| # The meson.build file is not copied as part of the build, so generate it |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This should not be necessary, you can install any file you want/need. Can you commit a regular meson.build file in random/_examples/cython/ and edit random/meson.build to install it rather than the _examples/cython/setup.py file that's installed now?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I addressed the review comments, CI is passing. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
It looks very red to me. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think you forgot to commit the new |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Thanks. Committed now, I guess I should refresh (f5) before jumping to conclusions. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, in it goes. Thanks Matti!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We may want to backport some of this to 1.26, so marking. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Seems we don't need it, so removing label. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.