Skip to content

Commit 50eb922

Browse files
authored
Don't compile mypyc/lib-rt/setup.py (python#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.
1 parent a86be75 commit 50eb922

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ def run(self):
103103
# We don't populate __file__ properly at the top level or something?
104104
# Also I think there would be problems with how we generate version.py.
105105
'version.py',
106-
))
106+
)) + (
107+
# Don't want to grab this accidentally
108+
os.path.join('mypyc', 'lib-rt', 'setup.py'),
109+
)
107110

108111
everything = (
109112
[os.path.join('mypy', x) for x in find_package_data('mypy', ['*.py'])] +

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy