From f03db870a25039bd70ac8822e0c3fe8be8ddb3fa Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 16 Sep 2021 22:16:07 +0200 Subject: [PATCH] DOC Adding pip install instruction in the docs for pyodide-build [skip ci](#1845) Co-authored-by: Hood Chatham Co-authored-by: Sylvain Riondet --- docs/development/building-from-sources.md | 4 ++++ docs/development/new-packages.md | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/development/building-from-sources.md b/docs/development/building-from-sources.md index 752766dd4..44e067949 100644 --- a/docs/development/building-from-sources.md +++ b/docs/development/building-from-sources.md @@ -29,6 +29,10 @@ Additional build prerequisites are: - [f2c](http://www.netlib.org/f2c/) - [ccache](https://ccache.samba.org) (optional) _highly_ recommended for much faster rebuilds. +You can install the python dependencies from the requirement file at the root of pyodide folder: +`pip install -r requirements.txt` + + On Mac, you will also need: - [Homebrew](https://brew.sh/) for installing dependencies diff --git a/docs/development/new-packages.md b/docs/development/new-packages.md index ed504763d..0c9f5e12e 100644 --- a/docs/development/new-packages.md +++ b/docs/development/new-packages.md @@ -40,11 +40,12 @@ To determine if a package has C extensions, check if its `setup.py` contains any compilation commands. ``` -### 2. Creating the meta.yaml +### 2. Creating the `meta.yaml` file + +If your package is on PyPI, the +easiest place to start is with the {ref}`mkpkg tool `. +From the Pyodide root directory, install the tool with `pip install -e pyodide-build`, then run: -Once you determined that you need to create a new package for Pyodide, the -easiest place to start is with the {ref}`mkpkg tool `. If your -package is on PyPI, run: `pyodide-build mkpkg `