mypy: Compile with mypyc

Closes #45986.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Ruben Opdebeeck 2019-10-30 13:53:37 +01:00 committed by FX Coudert
parent 13d95340d8
commit c6cebb45f4

View file

@ -4,6 +4,7 @@ class Mypy < Formula
url "https://github.com/python/mypy.git",
:tag => "v0.740",
:revision => "0662772b5a6b9029da0cf4aec857b9b1e34057a9"
revision 1
head "https://github.com/python/mypy.git"
bottle do
@ -67,6 +68,7 @@ class Mypy < Formula
end
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"
ENV["MYPY_USE_MYPYC"] = "1"
system "python3", *Language::Python.setup_install_args(libexec)
bin.install Dir[libexec/"bin/*"]