Skip to content
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

Make system image relocatable #327

Open
tkf opened this issue Sep 17, 2019 · 0 comments
Open

Make system image relocatable #327

tkf opened this issue Sep 17, 2019 · 0 comments

Comments

@tkf
Copy link
Member

tkf commented Sep 17, 2019

The custom system image created by current PyJulia is not relocatable at the moment. One of the reasons is that it embeds the path to julia-py executable:

Base.eval(Base, quote
julia_exename() = $julia_py
end)

An easy fix may be to dynamically load julia-py path from an environment variable. However, since different Python versions may not be ABI compatible (e.g., 3.6 and 3.7 have different PyDateTime layout), we need to check the ABI compatibility at run-time. PyCall.__init__ may be the best location to do this check.

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

No branches or pull requests

1 participant