standard library is set by default by 5f6c715

Related commit: 5f6c7152b3
This commit is contained in:
Jeong YunWon
2020-05-08 04:04:36 +09:00
committed by GitHub
parent c3ea697ef3
commit bccf83ff73

View File

@@ -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