GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MAINT: special: Remove npymath dep by ilayn · Pull Request #24788 · scipy/scipy

Conversation

@ilayn

@ilayn ilayn commented Mar 11, 2026 •
edited by lucascolley
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Reference issue

Related to #24786 and #21631
closes gh-17498, closes gh-19638.

cc @andyfaff

What does this implement/fix?

scipy.special pulls in complex functions from libnpymath however this forces the linker to also get the long double complex versions too which confuses linker between UCRT SciPy build and MSVC compiled NumPy on windows run.

AI Generation Disclosure

No AI

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ilayn
MAINT:Remove npymath dep
7a4418b
@ilayn
ilayn requested review from rgommers and steppi as code owners March 11, 2026 09:10
@github-actions github-actions Bot added the maintenance Items related to regular maintenance tasks label Mar 11, 2026
@rgommers

rgommers commented Mar 11, 2026

Copy link
Copy Markdown
Member

Yes please, this would be super helpful! Now that we rely on NumPy 2.0 only, it should be possible to get rid of the last traces of libnpymath usage.

ilayn reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn ilayn changed the title WIP: MAINT: special: Remove npymath dep MAINT: special: Remove npymath dep Mar 11, 2026
@andyfaff

andyfaff commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

This looks ok to me.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn

ilayn commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

The failures are not relevant I think. It is good to go from my side.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Mar 11, 2026

Copy link
Copy Markdown
Member

The win_arm64 crashes may be relevant - at least, it's not clear to me that they aren't.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn

ilayn commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

They are being tracked in #24774 prior to this.

lucascolley reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn ilayn mentioned this pull request Mar 11, 2026
BLD: having difficulties building with more modern rtools versions #24786
Closed
@lucascolley lucascolley added the scipy.special label Mar 11, 2026
@lucascolley lucascolley added this to the 1.18.0 milestone Mar 11, 2026
lucascolley
lucascolley reviewed Mar 11, 2026
View reviewed changes

@lucascolley lucascolley left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this PR address

the point is to avoid linking the libnpymath.a static library that is shipped with numpy, so that we can eventually stop shipping that

from #17498 (comment) ?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ilayn

ilayn commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

Yes it does. libnpyrandom was removed earlier.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lucascolley

lucascolley commented Mar 11, 2026

Copy link
Copy Markdown
Member

Yes it does. libnpyrandom was removed earlier.

what's the status of #19638, then? Should it be closed? cc @lysnikolaou

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn

ilayn commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

npy_math.h is not related to libnpymath one of them is a header for function declarations that are resolved at compile time, the other one is a library that NumPy vendors that we link to like OpenBLAS or MKL. Here we are removing the library linking not the header which is fine.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lucascolley

lucascolley commented Mar 11, 2026

Copy link
Copy Markdown
Member

npy_math.h is not related to libnpymath one of them is a header for function declarations that are resolved at compile time, the other one is a library that NumPy vendors that we link to like OpenBLAS or MKL. Here we are removing the library linking not the header which is fine.

so does #17498 (comment) mean that we don't really care about the other changes in that PR at this stage?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn

ilayn commented Mar 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

That's a PR pre-fortran rewrite and pre Numpy 2.0 and pre-xsf. So I'd say yes

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Mar 11, 2026

Copy link
Copy Markdown
Member

Agreed, this PR will close gh-19638.

lucascolley reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ilayn
ilayn merged commit 6ed181f into scipy:main Mar 12, 2026
74 of 85 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ilayn
ilayn deleted the no_npymath branch March 12, 2026 08:23
@ilayn

ilayn commented Mar 12, 2026

Copy link
Copy Markdown
Member Author

Thanks all! Another nudge to numpy/numpy#20880

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@andyfaff andyfaff mentioned this pull request Mar 13, 2026
CI: rtools45 #24801
Merged
@rgommers rgommers mentioned this pull request Mar 14, 2026
BUG: special: use CMPLX() instead of real + imag * I in _complexstuff.h #24826
Merged
@rgommers

rgommers commented Mar 14, 2026

Copy link
Copy Markdown
Member

I reviewed this, overall looks great - a small follow-up in gh-24826.

ilayn reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lucascolley pushed a commit to lucascolley/scipy that referenced this pull request Mar 17, 2026
@ilayn @lucascolley
MAINT:Remove npymath dep (scipy#24788)
f16c8b0
@rgommers rgommers mentioned this pull request Mar 26, 2026
MAINT: _build_utils: remove vendored npy_cblas.h header #24902
Merged
@rgommers rgommers mentioned this pull request May 11, 2026
ENH: Future of npymath library numpy/numpy#20880
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lucascolley lucascolley lucascolley left review comments
@rgommers rgommers Awaiting requested review from rgommers rgommers is a code owner
@steppi steppi Awaiting requested review from steppi steppi is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

maintenance Items related to regular maintenance tasks scipy.special

Projects

None yet

Milestone

1.18.0

Development

Successfully merging this pull request may close these issues.

BLD: Remove use of libnpymath and libnpyrandom

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ilayn @rgommers @andyfaff @lucascolley
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.