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

pyodide venv should take an abi version / index argument #88

Open
hoodmane opened this issue Jan 23, 2025 · 5 comments
Open

pyodide venv should take an abi version / index argument #88

hoodmane opened this issue Jan 23, 2025 · 5 comments

Comments

@hoodmane
Copy link
Member

hoodmane commented Jan 23, 2025

We can see if we can imitate a subset of virtualenv's arguments. I'm not even sure how pyodide venv decides which index to download from since we stopped versioning pyodide-build and the pyodide runtime + recipe set together.

@ryanking13
Copy link
Member

Maybe we can use the Pyodide Anaconda Index. It still does not support CORS headers but pyodide venv does not have CORS constraints (as far as I know?), and it use pip-resolver to download packages.

@hoodmane
Copy link
Member Author

Isn't that somewhat orthogonal to being able to select the abi?

@ryanking13
Copy link
Member

Isn't that somewhat orthogonal to being able to select the abi?

We can put packages with different ABI (pyodide_2024_0 / pyodide_2025_0) in this index together. pip will select the packages with matching ABI.

@hoodmane
Copy link
Member Author

Ah interesting. But what about if they want the package set specifically from 0.26.4? Maybe nobody wants that?

@ryanking13
Copy link
Member

Ah interesting. But what about if they want the package set specifically from 0.26.4? Maybe nobody wants that?

Hmm, good point. If someone wants to test against a specific set of packages in a particular version of Pyodide, one might want to do that. In that case, probably we'll need to use our CDN as an index just like we do now.

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