File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : compile clean all distclean test debug sdist clean-libuv
1
+ .PHONY : check-env compile clean all distclean test debug sdist clean-libuv
2
2
.PHONY : release sdist-libuv docs
3
3
4
4
5
- all : clean compile
5
+ all : compile
6
6
7
7
8
8
clean :
12
12
find . -name ' __pycache__' | xargs rm -rf
13
13
14
14
15
+ check-env :
16
+ python -c " import cython; (cython.__version__ < '0.24') and exit(1)"
17
+
15
18
clean-libuv :
16
19
git -C vendor/libuv clean -dfX
17
20
@@ -23,14 +26,14 @@ sdist-libuv: clean-libuv
23
26
distclean : clean clean-libuv
24
27
25
28
26
- compile : clean
29
+ compile : check-env clean
27
30
echo " DEF DEBUG = 0" > uvloop/__debug.pxi
28
31
cython -3 uvloop/loop.pyx; rm uvloop/__debug.*
29
32
@echo " $$ UVLOOP_BUILD_PATCH_SCRIPT" | python
30
33
python setup.py build_ext --inplace
31
34
32
35
33
- debug : clean
36
+ debug : check-env clean
34
37
echo " DEF DEBUG = 1" > uvloop/__debug.pxi
35
38
cython -3 -a -p uvloop/loop.pyx; rm uvloop/__debug.*
36
39
@echo " $$ UVLOOP_BUILD_PATCH_SCRIPT" | python
You can’t perform that action at this time.
0 commit comments