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 — MAINT: Vendor npymath as git submodule and vendor npyrandom directly by lysnikolaou · Pull Request #19638 · scipy/scipy Conversation
|
|
x-ref gh-17498 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The CI failures are looking like: The problem here will be with statically linking |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If we look at what we're actually using from typedef struct bitgen { void *state; uint64_t (*next_uint64)(void *st); uint32_t (*next_uint32)(void *st); double (*next_double)(void *st); uint64_t (*next_raw)(void *st); } bitgen_t; And then |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I've removed the libnpymath (it's not needed at all) and libnpyrandom (no need for a static library, just the sources) dependencies altogether and tested this against numpy/numpy#25390, which in turn removes any dependency on numpy from npyrandom, and it seems like everything's okay. @rgommers Do you think this is a sensible way forward? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Those source files aren't shipped by NumPy yet, so that cannot work I think - as also indicated by CI failures: We are supporting ~4 numpy versions back, so rather than trying to ship the C sources as part of NumPy, they should be vendored somehow (either directly or via a submodule). I was suggesting above that what we need is so minimal (one struct, one function) that it may be possible to vendor the relevant bits directly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
793319d to
38e763a
Compare
There was an error while loading. Please reload this page.
|
I got successfully (locally) Windows 32-bit build with lysnikolaou@4829d69 out of the box! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Ah - excellent - but I guess with the same ndimage test failures as before? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The same failures unfortunately. Not related to this PR however. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is now updated to use numpy/libnpymath, instead of my test repo. A round of review would be nice, so that we can merge it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So is the |
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! Only one nontrivial comment so far. I'll have a closer look at the included C code, but should be safe since it's a sync from numpy code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
If you push another commit, could you include |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d37b134 to
8e9de83
Compare
|
@lysnikolaou can you summarize for me the relationship (if any) between this change and NumPy 2.0.0? As I recall, Ralf wanted this merged a few release ago, but then things got tricky with various discussion upstream. I'm thinking of branching for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
TL;DR This is not needed for 2.0 compatibility. The bigger picture is that we want to eventually stop shipping static libraries with NumPy. We're working with the assumption that SciPy is one of the few, if not the only, downstream user of the static libraries, hence this PR that adds support for the new way of doing things. However, this change did not make it into 2.0 because of challenges with complex numbers. I'm actively working on a solution for these problems, and hope that everything will be ready for 2.1. In case that goes well, For |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The For a next step here, I'd recommend another PR splitting off whatever is mergeable next. I think it the removal of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A gentle ping, as this seems to have slipped on everyone's radar. Would be great to move this along. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ev-br Thanks for the ping! This fell further down my priority list and I haven't had time to work on it for a while. I think we first need to clear up how NumPy will handle Hopefully I'll be able to find some time to work on this soon-ish. |
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.
BLD: Remove use oflibnpymath and libnpyrandom
There was an error while loading. Please reload this page.