-
Notifications
You must be signed in to change notification settings - Fork 4
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
auto-installation #5
Comments
Okay, PyCall 1.6 should be tagged shortly, and then you can automate installation via |
Finally got around to this -- that was easy! Thanks. |
I would recommend something like what the PyCall README says: const sgp4io = PyNULL()
const earth_gravity = PyNULL()
function __init__()
copy!(sgp4io, pyimport_conda("sgp4.io", "sgp4", "poliastro"))
copy!(earth_gravity, pyimport("sgp4.earth_gravity"))
end and then you can do e.g. This is more type-stable and should also be faster because you don't need to have Note also that |
Awesome, thanks for the tips. |
You should probably be doing something like
pyimport_conda("sgp4", "sgp4")
in your__init__
function to auto-install the SGP4 package via Conda if possible. (Requires PyCall 1.5.)Though it looks like sgp4 is only available in a custom Conda channel. To make this possible, I'll add a third argument to
pyimport_conda
in PyCall 1.6 so that you can dopyimport_conda("sgp4", "sgp4", "poliastro")
to use the poliastro channel.The text was updated successfully, but these errors were encountered: