Skip to content
Merged
Next Next commit
Support building mypycified mypy with PEP517 interface
  • Loading branch information
emmatyping committed Aug 18, 2022
commit ab59628c2f1d200d35d68dd76fb3961aa102f584
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
requires = [
"setuptools >= 40.6.2",
"wheel >= 0.30.0",
"typing_extensions>=3.10",
Comment thread
emmatyping marked this conversation as resolved.
"mypy_extensions>=0.4.3",
"typed_ast>=1.4.0,<2; python_version<'3.8'",
"tomli>=1.1.0; python_version<'3.11'",
"types-setuptools",
"types-typed-ast>=1.5.0,<1.6.0",
Comment thread
emmatyping marked this conversation as resolved.
Outdated
]
build-backend = "setuptools.build_meta"

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def run(self):

USE_MYPYC = False
# To compile with mypyc, a mypyc checkout must be present on the PYTHONPATH
if len(sys.argv) > 1 and sys.argv[1] == "--use-mypyc":
sys.argv.pop(1)
if len(sys.argv) > 1 and "--use-mypyc" in sys.argv:
sys.argv.remove("--use-mypyc")
USE_MYPYC = True
if os.getenv("MYPY_USE_MYPYC", None) == "1":
USE_MYPYC = True
Expand Down