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 — py-scipy: add v1.14.0 by adamjstewart · Pull Request #44967 · spack/spack

Conversation

@adamjstewart

@adamjstewart adamjstewart commented Jun 29, 2024

Copy link
Copy Markdown
Member

https://github.com/scipy/scipy/releases/tag/v1.14.0

@rgommers I would be interested in getting Accelerate working in the future. Spack only supports a single BLAS/LAPACK library in the DAG at a time. If I understand correctly, SciPy supports Accelerate now, but NumPy still doesn't? Are there plans for NumPy to support Accelerate? I don't even know where to start with adding an Accelerate package to Spack, not sure if you know where libraries live, how to check what versions are present, how those versions map to BLAS/LAPACK API versions, etc.

Sorry, something went wrong.

Uh oh!

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

All reactions
@adamjstewart
py-scipy: add v1.14.0
ee6abba
@spackbot-app spackbot-app Bot added dependencies new-version python update-package labels Jun 29, 2024
@spackbot-app
spackbot-app Bot requested a review from rgommers June 29, 2024 20:05
@adamjstewart

adamjstewart commented Jun 30, 2024

Copy link
Copy Markdown
Member Author

../meson.build:138:12: ERROR: Program 'pythran' not found or not executable

I know we had this problem before, but I don't remember how we solved it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@rgommers

rgommers commented Jun 30, 2024

Copy link
Copy Markdown
Contributor

Are there plans for NumPy to support Accelerate?

NumPy supports it already; the macosx_14_0 wheels in the 2.0.0 release are built against Accelerate. It was

I don't even know where to start with adding an Accelerate package to Spack, not sure if you know where libraries live, how to check what versions are present, how those versions map to BLAS/LAPACK API versions, etc.

The libraries and headers are in a system location; they'll be on the search path even when you're using compilers other than Apple Clang.

Versions are directly tied to macOS version: on macOS >=13.3 the new Accelerate is always available, and it provides a LAPACK 3.9 API. In macOS 15.0 that will be upgraded to LAPACK 3.11. numpy/numpy#24053 may be instructive to look at.

The main problem for Spack may be symbol naming; the symbol suffixes to access the updated library at $NEWLAPACK or $NEWLAPACK$ILP64. Not all packages that need LAPACK will have support for custom symbol suffixes (it was a massive job to implement that for SciPy).

All reactions

Sorry, something went wrong.

Uh oh!

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

@rgommers

rgommers commented Jun 30, 2024

Copy link
Copy Markdown
Contributor

../meson.build:138:12: ERROR: Program 'pythran' not found or not executable

I know we had this problem before, but I don't remember how we solved it.

See #42213 (comment). The problem was a too old version of setuptools. Looking at this log, it pulls in setuptools 46.1.3, which is ridiculously old.

adamjstewart 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.

@rgommers rgommers mentioned this pull request Jun 30, 2024
py-numpy: add v2.0.0 #44735
Merged
@adamjstewart
py-pythran: newer setuptools needed at run-time too
ccb5d1b
@adamjstewart

adamjstewart commented Jun 30, 2024

Copy link
Copy Markdown
Member Author

Okay, hoping the last commit fixes this. Spack is using a newer version of setuptools to build pythran (as instructed). However, we have no constraints on the version of setuptools present at run-time. I don't know why an older version was chosen, but the latest commit should force a newer version to be used at run-time as well. I didn't realize the version of setuptools present at run-time mattered for pythran but it seems that that's the case.

All reactions

Sorry, something went wrong.

Uh oh!

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

@adamjstewart
adamjstewart requested a review from alalazo July 1, 2024 08:19
alalazo
alalazo approved these changes Jul 1, 2024
View reviewed changes

@alalazo alalazo 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.

LGTM, @rgommers do you have any comments?

Sorry, something went wrong.

Uh oh!

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

All reactions
rgommers
rgommers approved these changes Jul 1, 2024
View reviewed changes

@rgommers rgommers left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM, seems ready to merge.

I didn't realize the version of setuptools present at run-time mattered for pythran but it seems that that's the case.

It seems odd indeed. It may not be inside pythran itself, but rather than setuptools is somehow used in however Spack has implemented entrypoint support for Python.

Sorry, something went wrong.

Uh oh!

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

All reactions
@alalazo
alalazo merged commit 78c6253 into spack:develop Jul 1, 2024
@adamjstewart
adamjstewart deleted the packages/py-scipy branch July 1, 2024 13:29
hariharan-devarajan pushed a commit to hariharan-devarajan/spack that referenced this pull request Jul 10, 2024
@adamjstewart @hariharan-devarajan
py-scipy: add v1.14.0 (spack#44967)
f89098c
@greenc-FNAL greenc-FNAL mentioned this pull request Jul 30, 2024
Update from upstream 2024-07-22 and re-apply scopes FNALssi/spack#408
Merged
@JakobKai JakobKai mentioned this pull request Aug 26, 2024
Duplicate package in PYTHONPATH #46034
Closed
3 tasks done
FrederickDeny pushed a commit to FrederickDeny/spack that referenced this pull request Aug 26, 2024
@adamjstewart @FrederickDeny
py-scipy: add v1.14.0 (spack#44967)
563c84e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alalazo alalazo alalazo approved these changes
+1 more reviewer
@rgommers rgommers rgommers approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

dependencies new-version python update-package

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@adamjstewart @rgommers @alalazo
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.