From 0ca65052613cbee3ba5a43b78cb69288d6774087 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 31 May 2019 16:02:51 -0400 Subject: [PATCH] Update docs about Netlify. --- Makefile | 5 +++-- README.md | 13 +++++++++---- docs/using_pyodide_from_javascript.md | 12 +++++++++++- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c2197b4c7..8aa1f7ace 100644 --- a/Makefile +++ b/Makefile @@ -85,7 +85,8 @@ build/pyodide_dev.js: src/pyodide.js build/pyodide.js: src/pyodide.js cp $< $@ - sed -i -e 's#{{DEPLOY}}#https://iodide.io/pyodide-demo/#g' $@ + sed -i -e 's#{{DEPLOY}}#https://pyodide.netlify.com/#g' $@ + sed -i -e "s#{{ABI}}#$(PYODIDE_PACKAGE_ABI)#g" $@ @@ -102,7 +103,7 @@ build/renderedhtml.css: src/renderedhtml.less build/webworker.js: src/webworker.js cp $< $@ - sed -i -e 's#{{DEPLOY}}#https://iodide.io/pyodide-demo/#g' $@ + sed -i -e 's#{{DEPLOY}}#https://pyodide.netlify.com/#g' $@ build/webworker_dev.js: src/webworker.js cp $< $@ diff --git a/README.md b/README.md index aa499b7e9..2f90ccebb 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,14 @@ When inside a browser, this means Python has full access to the Web APIs. be used standalone in any context where you want to run Python inside a web browser.** -For more information, see [the demo](https://extremely-alpha.iodide.io/notebooks/222/) and the +For more information, see [the demo](https://alpha.iodide.io/notebooks/300/) and the [documentation](https://github.com/iodide-project/pyodide/tree/master/docs). +# Downloading pre-built versions + +Pre-built versions of Pyodide are available +[here](https://github.com/iodide-project/pyodide/releases/). + # Building Building is easiest on Linux. For other platforms, we recommend using @@ -48,9 +53,9 @@ already installed to make it easier to build Pyodide. 3. Run `make` to build. If running ``make`` deterministically stops at one point in each subsequent try, increasing -the maximum RAM usage available to the docker container might help [This is different -from the physical RAM capacity inside the system]. Ideally, at least 3 GB of RAM -should be available to the docker container to build `pyodide` smoothly. These settings can +the maximum RAM usage available to the docker container might help [This is different +from the physical RAM capacity inside the system]. Ideally, at least 3 GB of RAM +should be available to the docker container to build `pyodide` smoothly. These settings can be changed via Docker Preferences [See [here](https://stackoverflow.com/questions/44533319/how-to-assign-more-memory-to-docker-container)]. You can edit the files in your source checkout on your host machine, and then diff --git a/docs/using_pyodide_from_javascript.md b/docs/using_pyodide_from_javascript.md index b042d243c..3e4d26e40 100644 --- a/docs/using_pyodide_from_javascript.md +++ b/docs/using_pyodide_from_javascript.md @@ -8,7 +8,17 @@ Iodide](using_pyodide_from_iodide.md). Include `pyodide.js` in your project. -This has a single `Promise` object which bootstraps the Python environment: +The recommended way to include Pyodide in your project is to download a release +from [here](https://github.com/iodide-project/pyodide/releases) and include the +contents in your distribution, and import the `pyodide.js` file there from a +`