-
Notifications
You must be signed in to change notification settings - Fork 433
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 python client available in binary wheels, and change its name to magika-python-client
#930
Comments
This looks good to me. But then I'm thinking, if we're fine having a separate wheel for the python client, what's the disadvantage of having a separate wheel for the Rust client as well? At least we would have the benefit of not having to hack the version numbers. That's small now that it's done, but just wondering what's the disadvantage. |
Good points. The way I see is that we should do whatever we can to hide complexity from the users. For example, I think having a separate wheel for the python client is totally OK because most users will not have any idea about it (with the tradeoff that we are adding complexity on our side; which I think it's preferrable). And it's big win to be able to say to users "just do Now, about this proposal... I tried, and it did not really work that well. No problems for the pure python wheel: 1) "magika-python-client", and 2) we now have "magika" (which shows a warning about missing rust, points user to open a github issue, and mentions the python fallback "magika-python-client". This is done: #931. The problem is about the binary wheel: maturin is very unhappy about me specifying additional entry points (called "scripts" in the context of pyproject.toml):
Related maturin's issue: PyO3/maturin#368 So, for now I've only modified the pure wheel; I'll leave the binary wheel untouched for now, which means no python client for those. I think that's fine; my main concern was to not have people assuming they are running the rust binary while in fact they are running the old client (which could at some point be out of sync in terms of features). |
Sounds good to me. The Maturin stuff is a bummer, but I agree not that bad. |
This is the current situation:
magika
=> rust client. There is not python client.magika
=> python client. There is no rust client.This is not ideal:
I propose to do the following:
magika
=> rust client.magika-python-client
=> python client.magika
=> print a warning that this is a pure python wheel with no rust, and that one should either install the proper wheel, or one can fall back to using the python client, withmagika-python-client
.magika-python-client
=> python client@ia0, thoughts?
The text was updated successfully, but these errors were encountered: