-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
base: develop
Are you sure you want to change the base?
Conversation
40f08b6
to
a09a2b3
Compare
e950baa
to
1cd30ca
Compare
Ready for review. Hope it can be merged soon! (One action failed, probably due to an internet connection error) |
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) |
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.
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 |
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.
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
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() |
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.
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?
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.
I did this because it was also required in scipy
recipe.
Closes #3163
Split #3136