Explicitly request Python 3

It varies between systems if /usr/bin/python is Python 2.x or Python
3.x. Since we now only work with Python 3.x we should be more explicit
in our scripts and documentation.
This commit is contained in:
Pierre Ossman 2020-12-15 16:10:43 +01:00
parent 33710b3972
commit 108f993eb3
3 changed files with 4 additions and 4 deletions

View File

@ -6,4 +6,4 @@ install:
- pip install 'setuptools>=18.5,<=39.0.0'
- pip install -r test-requirements.txt
script: python setup.py nosetests --verbosity=3
script: python3 setup.py nosetests --verbosity=3

View File

@ -159,12 +159,12 @@ project demonstrates a simple WebSockets based telnet client (use
### Installing websockify
Download one of the releases or the latest development version, extract
it and run `python setup.py install` as root in the directory where you
it and run `python3 setup.py install` as root in the directory where you
extracted the files. Normally, this will also install numpy for better
performance, if you don't have it installed already. However, numpy is
optional. If you don't want to install numpy or if you can't compile it,
you can edit setup.py and remove the `install_requires=['numpy'],` line
before running `python setup.py install`.
before running `python3 setup.py install`.
Afterwards, websockify should be available in your path. Run
`websockify --help` to confirm it's installed correctly.

2
run
View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
set -e
cd "$(dirname "$0")"
exec python -m websockify "$@"
exec python3 -m websockify "$@"