Skip to content

Commit

Permalink
Do not invoke setupy.py directly.
Browse files Browse the repository at this point in the history
invoking setup.py directly is not the best way to install a package from
source. See one of the most recent blog about this:

https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html

This updates the readme to invoke pip, and use `python -m pip` to make
sure that the pip which is invoked is the one from the current Python.

i'm also happy to make it `python3 -m pip`, but these days python points
to python 3 most of the time.
  • Loading branch information
Carreau committed Oct 21, 2021
1 parent 6246354 commit 29adc2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Installation
You can install the library by running the following command,

```python
python3 setup.py install
python -m pip install .
```

For development purposes, you can use the option `develop` as shown below,

```python
python3 setup.py develop
python -m pip install -e .
```

Make sure that your python version is above `3.5`.
Expand Down

0 comments on commit 29adc2c

Please sign in to comment.