From bccf83ff7380331e5da2cd32f9d6ef3e0079bfcf Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Fri, 8 May 2020 04:04:36 +0900 Subject: [PATCH] standard library is set by default by 5f6c715 Related commit: 5f6c7152b39162926571272caf79f9eaff049564 --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c3f5fefed9..f7a5832da0 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ To test RustPython, do the following: $ git clone https://github.com/RustPython/RustPython $ cd RustPython - $ export RUSTPYTHONPATH=Lib $ cargo run demo.py Hello, RustPython! @@ -149,20 +148,20 @@ methods are often the simplest and easiest way to contribute. You can also simply run `./whats_left.sh` to assist in finding any unimplemented method. -## Using a standard library +## Using a different standard library -As of now the standard library is under construction. You can use a standard +As of now the standard library is under construction. You can change a standard library by setting the RUSTPYTHONPATH environment variable. To do this, follow this method: ```shell -$ export RUSTPYTHONPATH=~/GIT/RustPython/Lib +$ export RUSTPYTHONPATH=./Lib # this is same as the default value $ cargo run -- -c 'import xdrlib' ``` You can play around with other standard libraries for python. For example, the -[ouroboros library](https://github.com/pybee/ouroboros). +[ouroboros library](https://github.com/pybee/ouroboros) or CPython Lib. ## Compiling to WebAssembly