Skip to content

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

Merged
tkf merged 1 commit into
JuliaPy:masterfrom
tkf:aot-numpy
May 20, 2019
Merged

tkf merged 1 commit into
JuliaPy:masterfrom
tkf:aot-numpy

Conversation

@tkf

@tkf tkf commented May 19, 2019

Copy link
Copy Markdown
Member

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