@@ -22,7 +22,7 @@ dev-py3: clean setup-py3
22
22
.PHONY : setup
23
23
setup :
24
24
python -m ensurepip
25
- python -m pip install --upgrade " setuptools<58 " wheel pip pytest_remotedata
25
+ python -m pip install --upgrade setuptools wheel pip pytest_remotedata
26
26
27
27
.PHONY : setup-py2
28
28
setup-py2 :
@@ -32,7 +32,7 @@ setup-py2:
32
32
.PHONY : setup-py3
33
33
setup-py3 :
34
34
python3 -m ensurepip
35
- python3 -m pip install --upgrade " setuptools<58 " wheel pip pytest_remotedata
35
+ python3 -m pip install --upgrade setuptools wheel pip pytest_remotedata
36
36
37
37
.PHONY : setup-pypy
38
38
setup-pypy :
@@ -42,7 +42,7 @@ setup-pypy:
42
42
.PHONY : setup-pypy3
43
43
setup-pypy3 :
44
44
pypy3 -m ensurepip
45
- pypy3 -m pip install --upgrade " setuptools<58 " wheel pip pytest_remotedata
45
+ pypy3 -m pip install --upgrade setuptools wheel pip pytest_remotedata
46
46
47
47
.PHONY : install
48
48
install : setup
@@ -57,11 +57,11 @@ install-py3: setup-py3
57
57
python3 -m pip install -e .[tests]
58
58
59
59
.PHONY : install-pypy
60
- install-pypy :
60
+ install-pypy : setup-pypy
61
61
pypy -m pip install -e .[tests]
62
62
63
63
.PHONY : install-pypy3
64
- install-pypy3 :
64
+ install-pypy3 : setup-pypy3
65
65
pypy3 -m pip install -e .[tests]
66
66
67
67
.PHONY : format
@@ -155,11 +155,19 @@ test-verbose: clean
155
155
python ./coconut/tests/dest/runner.py
156
156
python ./coconut/tests/dest/extras.py
157
157
158
- # same as test-mypy but uses --verbose and --check-untyped-defs
158
+ # same as test-mypy but uses --verbose
159
+ .PHONY : test-mypy-verbose
160
+ test-mypy-verbose : export COCONUT_USE_COLOR=TRUE
161
+ test-mypy-verbose : clean
162
+ python ./coconut/tests --strict --force --target sys --verbose --jobs 0 --keep-lines --mypy --follow-imports silent --ignore-missing-imports --allow-redefinition
163
+ python ./coconut/tests/dest/runner.py
164
+ python ./coconut/tests/dest/extras.py
165
+
166
+ # same as test-mypy but uses --check-untyped-defs
159
167
.PHONY : test-mypy-all
160
168
test-mypy-all : export COCONUT_USE_COLOR=TRUE
161
169
test-mypy-all : clean
162
- python ./coconut/tests --strict --force --target sys --verbose -- keep-lines --mypy --follow-imports silent --ignore-missing-imports --allow-redefinition --check-untyped-defs
170
+ python ./coconut/tests --strict --force --target sys --keep-lines --mypy --follow-imports silent --ignore-missing-imports --allow-redefinition --check-untyped-defs
163
171
python ./coconut/tests/dest/runner.py
164
172
python ./coconut/tests/dest/extras.py
165
173
@@ -198,6 +206,12 @@ test-watch: clean
198
206
test-mini :
199
207
coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force --jobs 0
200
208
209
+ .PHONY : debug-comp-crash
210
+ debug-comp-crash : export COCONUT_USE_COLOR=TRUE
211
+ debug-comp-crash : export COCONUT_PURE_PYTHON=TRUE
212
+ debug-comp-crash :
213
+ python -X dev -m coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --strict --line-numbers --keep-lines --force --jobs 0
214
+
201
215
.PHONY : debug-test-crash
202
216
debug-test-crash :
203
217
python -X dev ./coconut/tests/dest/runner.py
@@ -221,7 +235,7 @@ clean:
221
235
222
236
.PHONY : wipe
223
237
wipe : clean
224
- rm -rf vprof.json profile.log * .egg-info
238
+ rm -rf vprof.json profile.log * .egg-info
225
239
-find . -name " __pycache__" -delete
226
240
-C:/GnuWin32/bin/find.exe . -name " __pycache__" -delete
227
241
-find . -name " *.pyc" -delete
@@ -253,19 +267,18 @@ check-reqs:
253
267
python ./coconut/requirements.py
254
268
255
269
.PHONY : profile-parser
270
+ profile-parser : export COCONUT_USE_COLOR=TRUE
256
271
profile-parser : export COCONUT_PURE_PYTHON=TRUE
257
272
profile-parser :
258
273
coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force --profile --verbose --recursion-limit 4096 2>&1 | tee ./profile.log
259
274
260
275
.PHONY : profile-time
261
- profile-time : export COCONUT_PURE_PYTHON=TRUE
262
276
profile-time :
263
- vprof -c h " coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
277
+ vprof -c h " ./ coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
264
278
265
279
.PHONY : profile-memory
266
- profile-memory : export COCONUT_PURE_PYTHON=TRUE
267
280
profile-memory :
268
- vprof -c m " coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
281
+ vprof -c m " ./ coconut ./coconut/tests/src/cocotest/agnostic ./coconut/tests/dest/cocotest --force" --output-file ./vprof.json
269
282
270
283
.PHONY : view-profile
271
284
view-profile :
0 commit comments