Skip to content

Commit 0a9044f

Browse files
committed
Remove PYTHONPATH declaration.
It's easier to have it in the local environment with: pip install -e .
1 parent 2b8bc2f commit 0a9044f

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.PHONY: default style types tests coverage maxi_cov build clean
22

33
export PYTHONASYNCIODEBUG=1
4-
export PYTHONPATH=src
54
export PYTHONWARNINGS=default
65

76
# Work around https://github.com/python/cpython/issues/128384. This prevents

‎compliance/README.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ To test the servers:
2828

2929
.. code-block:: console
3030
31-
$ PYTHONPATH=src python compliance/asyncio/server.py
32-
$ PYTHONPATH=src python compliance/sync/server.py
31+
$ python compliance/asyncio/server.py
32+
$ python compliance/sync/server.py
3333
3434
$ docker run --interactive --tty --rm \
3535
--volume "${PWD}/compliance/config:/config" \
@@ -51,8 +51,8 @@ To test the clients:
5151
crossbario/autobahn-testsuite \
5252
wstest --mode fuzzingserver --spec /config/fuzzingserver.json
5353
54-
$ PYTHONPATH=src python compliance/asyncio/client.py
55-
$ PYTHONPATH=src python compliance/sync/client.py
54+
$ python compliance/asyncio/client.py
55+
$ python compliance/sync/client.py
5656
5757
$ open compliance/reports/clients/index.html
5858

‎experiments/profiling/compression.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Usage::
77
$ pip install line_profiler
88
$ python experiments/compression/corpus.py experiments/compression/corpus
9-
$ PYTHONPATH=src python -m kernprof \
9+
$ python -m kernprof \
1010
--line-by-line \
1111
--prof-mod src/websockets/extensions/permessage_deflate.py \
1212
--view \

‎tests/maxi_cov.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def check_environment():
2323
try:
2424
import websockets # noqa: F401
2525
except ImportError:
26-
print("failed to import websockets; is src on PYTHONPATH?")
26+
print("failed to import websockets; is it installed?")
2727
return False
2828
try:
2929
import coverage # noqa: F401

0 commit comments

Comments
 (0)