From 4e8596b217a48f19df511420d696587a0ad828ea Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 29 Dec 2021 11:20:53 +0100 Subject: [PATCH 1/2] Skip compiling mypyc/__main__.py Fixes https://github.com/mypyc/mypyc/issues/912 --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 10042279a446..001df39ab0a1 100644 --- a/setup.py +++ b/setup.py @@ -107,6 +107,8 @@ def run(self): )) + ( # Don't want to grab this accidentally os.path.join('mypyc', 'lib-rt', 'setup.py'), + ) + ( + os.path.join('mypyc', '__main__.py'), ) everything = ( From 47ad41f898ef659cd4782a90ab25f9cbd954172f Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Wed, 29 Dec 2021 12:30:02 -0600 Subject: [PATCH 2/2] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 001df39ab0a1..344fcf94d0cf 100644 --- a/setup.py +++ b/setup.py @@ -107,7 +107,7 @@ def run(self): )) + ( # Don't want to grab this accidentally os.path.join('mypyc', 'lib-rt', 'setup.py'), - ) + ( + # Uses __file__ at top level https://github.com/mypyc/mypyc/issues/700 os.path.join('mypyc', '__main__.py'), )