-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transform relative index url in to abosute one,
And use 'PYPI' as an alias for the Pypi index. Basically some indexes (like pypi.anaconda.org), use relative urls for wheels, thus we need to resolve those before calling `wheel.download()` or it tries to dowload relative to current page. With this: https://github.com/carreau/cors running on localhost 8787 Manually install micropip: js> pyodide.loadPackage('https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl'); pyodide.loadPackage('http://localhost:8088/micropip-0.6.2.dev3+g90f4991.d20241024-py3-none-any.whl') And >>> import logging ... log = logging.getLogger('micropip') ... log.setLevel(10) ... import micropip ... await micropip.install('ipython', index_urls=['http://localhost:8787/scientific-python-nightly-wheels/simple', 'PYPI']) I get a proper install of IPython nightly from an anaconda repo: >>> import micropip >>> await micropip.install('ipython', index_urls=['http://localhost:8787/scientific-python-nightly-wheels/simple', 'PYPI'], verbose=True) Collecting ipython Downloading ipython-8.29.0.dev0-py3-none-any.whl Collecting traitlets>=5.13.0 Downloading traitlets-5.14.3-py3-none-any.whl Collecting stack-data Downloading stack_data-0.6.3-py3-none-any.whl Collecting matplotlib-inline Downloading matplotlib_inline-0.1.7-py3-none-any.whl Collecting prompt-toolkit<3.1.0,>=3.0.41 Downloading prompt_toolkit-3.0.48-py3-none-any.whl Collecting decorator Downloading decorator-5.1.1-py3-none-any.whl Requirement already satisfied: traitlets (5.14.3) Collecting jedi>=0.16 Downloading jedi-0.19.1-py2.py3-none-any.whl Collecting pygments>=2.4.0 Downloading pygments-2.18.0-py3-none-any.whl Collecting asttokens>=2.1.0 Downloading asttokens-2.4.1-py2.py3-none-any.whl Collecting executing>=1.2.0 Downloading executing-2.1.0-py2.py3-none-any.whl Collecting pure-eval Downloading pure_eval-0.2.3-py3-none-any.whl Collecting wcwidth Downloading wcwidth-0.2.13-py2.py3-none-any.whl Collecting parso<0.9.0,>=0.8.3 Downloading parso-0.8.4-py2.py3-none-any.whl Collecting six>=1.12.0 Downloading six-1.16.0-py2.py3-none-any.whl Installing collected packages: traitlets, decorator, matplotlib-inline, pygments, executing, pure-eval, wcwidth, prompt-toolkit, parso, jedi, six, asttokens, stack-data, ipython Successfully installed traitlets-5.14.3, decorator-5.1.1, matplotlib-inline-0.1.7, pygments-2.18.0, executing-2.1.0, pure-eval-0.2.3, wcwidth-0.2.13, prompt-toolkit-3.0.48, parso-0.8.4, jedi-0.19.1, six-1.16.0, asttoke ns-2.4.1, stack-data-0.6.3, ipython-8.29.0.dev0 >>> (Well IPyhton does not import because no SQLITE3... but it's a progress.
- Loading branch information
Showing
3 changed files
with
75 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters