Skip to content

update: numpy, pandas, sdl2 #3164

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

T-Dynamos
Copy link
Contributor

@T-Dynamos T-Dynamos commented Jun 17, 2025

Closes #3163

Split #3136

@T-Dynamos T-Dynamos marked this pull request as draft June 17, 2025 12:55
@T-Dynamos T-Dynamos force-pushed the numpy-update branch 4 times, most recently from 40f08b6 to a09a2b3 Compare June 19, 2025 12:21
@T-Dynamos T-Dynamos changed the title numpy: update to 2.3.0 update: numpy, pandas, sdl2 Jun 19, 2025
@T-Dynamos T-Dynamos force-pushed the numpy-update branch 2 times, most recently from e950baa to 1cd30ca Compare June 19, 2025 13:19
@T-Dynamos T-Dynamos marked this pull request as ready for review June 19, 2025 13:46
@T-Dynamos
Copy link
Contributor Author

T-Dynamos commented Jun 19, 2025

Ready for review. Hope it can be merged soon!

(One action failed, probably due to an internet connection error)

Comment on lines 382 to +385
def download_if_necessary(self):
if self.ctx.ndk_api < self.min_ndk_api_support:
error(f"In order to build '{self.name}', you must set minimum ndk api (minapi) to `{self.min_ndk_api_support}`.\n")
exit(1)
Copy link
Member

Choose a reason for hiding this comment

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

Wait, shouldn't we leverage pythonforandroid/recommendations.py?
Maybe @misl6 has better insights

url = 'git+https://github.com/numpy/numpy'
hostpython_prerequisites = ["Cython>=3.0.6"] # meson does not detects venv's cython
hostpython_prerequisites = ["Cython==3.0.6"] # meson does not detects venv's cython
Copy link
Member

Choose a reason for hiding this comment

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

Do we have to be that restrictive? Maybe it doesn't work with too recents Cython versions, but in this case maybe we should use a range at least

Comment on lines -39 to -44
def download_if_necessary(self):
# NumPy requires complex math functions which were added in api 24
if self.ctx.ndk_api < 24:
error(NUMPY_NDK_MESSAGE)
exit(1)
super().download_if_necessary()
Copy link
Member

Choose a reason for hiding this comment

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

Oh OK I see what you did there by moving it to recipe.py
@misl6 would have better insights, but I'd be tempted to keep it in this recipe only for this PR unless we have a clearly cleaner approach, what do you guys think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this because it was also required in scipy recipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numpy recipe
2 participants