Skip to content

Commit bee1758

Browse files
authored
Sort mypyc_targets in setup.py (python#6569)
The mypy_mypyc-wheels Travis build is currently broken on linux because of a mypyc bug that is dependent on the order of files passed to mypyc. I am fixing the bug (mypyc/mypyc#539), but this was complicated by files coming out of the file system APIs in an unspecified order. Sort the targets passed to mypyc so that the mypyc compilation process is deterministic.
1 parent bcd0480 commit bee1758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ def run(self):
115115

116116
# Fix the paths to be full
117117
mypyc_targets = [os.path.join('mypy', x) for x in mypyc_targets]
118+
# The targets come out of file system apis in an unspecified
119+
# order. Sort them so that the mypyc output is deterministic.
120+
mypyc_targets.sort()
118121

119122
# This bit is super unfortunate: we want to use the mypy packaged
120123
# with mypyc. It will arrange for the path to be setup so it can

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