Skip to content

Support calling PyCall.npyinitialize() during sysimage compilation #692

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

Merged
merged 1 commit into from
May 20, 2019

Conversation

tkf
Copy link
Member

@tkf tkf commented May 19, 2019

In PR #651, I introduced code to empty npy_api in __init__ but forgot to reset npy_initialized. This introduces a bug if npyinitialize is called during sysimage compilation (--output-o mode) because the main body of npyinitialize is not run at run-time.

I checked that undoing the fix breaks the AOT compilation test.

In PR JuliaPy#651, I introduced code to empty `npy_api` in `__init__` but
forgot to reset `npy_initialized`.  This introduces a bug if
`npyinitialize` is called during sysimage compilation (`--output-o`
mode) because the main body of `npyinitialize` is not run at run-time.
@tkf tkf merged commit 1a5b55f into JuliaPy:master May 20, 2019
@tkf tkf deleted the aot-numpy branch May 21, 2019 01:52
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.

2 participants