From 50eb9229af1ec2ba5696265b12a86098df48925a Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Wed, 11 Sep 2019 10:50:21 -0700 Subject: [PATCH] Don't compile mypyc/lib-rt/setup.py (#7497) mypyc/lib-rt/setup.py (used for compiling the mypyc runtime library tests) was getting picked up by the mypyc compilation globs, which results in it producing a toplevel (!) module named setup. Don't do that. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c2be44ca922e..e2a448025b05 100644 --- a/setup.py +++ b/setup.py @@ -103,7 +103,10 @@ def run(self): # We don't populate __file__ properly at the top level or something? # Also I think there would be problems with how we generate version.py. 'version.py', - )) + )) + ( + # Don't want to grab this accidentally + os.path.join('mypyc', 'lib-rt', 'setup.py'), + ) everything = ( [os.path.join('mypy', x) for x in find_package_data('mypy', ['*.py'])] +