@@ -60,9 +64,9 @@ installs the virtualenv manager using a venv encapsulated Python, and create mor
which is based on an encapsulated Python. One day a minor release of Python is released and one has to check
all those venvs and upgrade them if required.
PEP 582, on the other hand, introduces a way to decouple the Python interpreter from project
environments. It is a relative new proposal and there are not many tools supporting it (one that does
is [pyflow], but it is written with Rust and thus can't get much help from the big Python community and for the same reason it can't act as a PEP 517 backend).
[PEP 582], on the other hand, introduces a way to decouple the Python interpreter from project
environments. It is a relatively new proposal and there are not many tools supporting it (one that does
is [pyflow], but it is written with Rust and thus can't get much help from the big Python community and for the same reason it can't act as a [PEP 517] backend).
## Installation
...
...
@@ -149,7 +153,7 @@ $ pdm add requests flask
You can add multiple dependencies in the same command. After a while, check the `pdm.lock` file to see what is locked for each package.
**Run your script with PEP 582 support**
**Run your script with [PEP 582] support**
Suppose you have a script `app.py` placed next to the `__pypackages__` directory with the following content(taken from Flask's website):
...
...
@@ -204,7 +208,7 @@ Tell people you are using PDM in your project by including the markdown code in
### 1. What is put in `__pypackages__`?
PEP 582 is a draft proposal which still needs a lot of polishing. For instance, it doesn't mention how to manage
[PEP 582] is a draft proposal which still needs a lot of polishing. For instance, it doesn't mention how to manage
CLI executables. PDM makes the decision to put `bin` and `include` together with `lib` under `__pypackages__/X.Y`.
### 2. How do I run CLI scripts in the local package directory?