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

F.A.Q. about pinning packages #128

Open
WebReflection opened this issue Jun 13, 2024 · 1 comment
Open

F.A.Q. about pinning packages #128

WebReflection opened this issue Jun 13, 2024 · 1 comment

Comments

@WebReflection
Copy link
Contributor

WebReflection commented Jun 13, 2024

Me and @JeffersGlass had a very lengthy conversation in Discord that started here: https://discord.com/channels/972017612454232116/972020206538997822/1250818968466362378

It's clear people using PyScript don't (know or ...) pay enough attention to the pinned version of a module concept, so that it's expected from them to be surprised when we do a release, we update our interpreters, and stuff suddenly break for everyone that didn't get the "pin your package" memo.

The issue gets bigger when packages like Bokeh require, and maybe even provide, their own CDN to make it work.

In that case, the user had Bokeh 2.4.2 pinned as <script ...> dependency on their Web page, but no pinning version whatsoever in their packages = ["bokeh"] configuration.

We don't expect neither Pyodide nor MicroPython to change behavior around grabbing whatever latest stable version of a package there is, when no versioning is provided, but definitively we should inform our users the moment they don't pin a package version, specially if there is a JS counter part to satisfy that version, stuff might break unexpectedly (and it's not our fault, or Pyodide or MicroPython fault, it's a documentation fault, imho).

@JeffersGlass
Copy link
Contributor

@WebReflection's nailed it, but just to expand on one point: I think we can do more to communicate that if you're updating PyScript in a way that means Pyodide is also updating, that means the version of vendored packages that Pyodide is shipping may also change... so even if you've pinned a Python package, you may suddenly start getting the PyPI version instead of the Pyodide vendored version, or vice versa, which may not be obvious.

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

2 participants