File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ jobs:
115115 if : ${{ matrix.test_mypyc }}
116116 run : |
117117 pip install -r test-requirements.txt
118- CC=clang MYPYC_OPT_LEVEL=0 python3 setup.py --use-mypyc build_ext --inplace
118+ CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
119119 - name : Setup tox environment
120120 run : tox -e ${{ matrix.toxenv }} --notest
121121 - name : Test
Original file line number Diff line number Diff line change 1+ # NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml
12-r mypy-requirements.txt
23types-psutil
34types-setuptools
Original file line number Diff line number Diff line change 1+ # NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml
12typing_extensions>=3.10
23mypy_extensions>=0.4.3
34typed_ast>=1.4.0,<2; python_version<'3.8'
Original file line number Diff line number Diff line change 11[build-system ]
22requires = [
3+ # NOTE: this needs to be kept in sync with mypy-requirements.txt
4+ # and build-requirements.txt, because those are both needed for
5+ # self-typechecking :/
36 " setuptools >= 40.6.2" ,
47 " wheel >= 0.30.0" ,
8+ # the following is from mypy-requirements.txt
9+ " typing_extensions>=3.10" ,
10+ " mypy_extensions>=0.4.3" ,
11+ " typed_ast>=1.4.0,<2; python_version<'3.8'" ,
12+ " tomli>=1.1.0; python_version<'3.11'" ,
13+ # the following is from build-requirements.txt
14+ " types-psutil" ,
15+ " types-setuptools" ,
16+ " types-typed-ast>=1.5.8,<1.6.0" ,
517]
618build-backend = " setuptools.build_meta"
719
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ def run(self):
7979
8080USE_MYPYC = False
8181# To compile with mypyc, a mypyc checkout must be present on the PYTHONPATH
82- if len (sys .argv ) > 1 and sys . argv [ 1 ] == "--use-mypyc" :
83- sys .argv .pop ( 1 )
82+ if len (sys .argv ) > 1 and "--use-mypyc" in sys . argv :
83+ sys .argv .remove ( "--use-mypyc" )
8484 USE_MYPYC = True
8585if os .getenv ("MYPY_USE_MYPYC" , None ) == "1" :
8686 USE_MYPYC = True
You can’t perform that action at this time.
0 commit comments