File bpo36302-sort-module-sources.patch of Package python (Revision 7c7532457b948cc36e86ff51d95885bc)
Currently displaying revision 7c7532457b948cc36e86ff51d95885bc , Show latest
14
1
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
2
index 86a85c1..66bf0c2 100644
3
--- a/Lib/distutils/command/build_ext.py
4
+++ b/Lib/distutils/command/build_ext.py
5
6
("in 'ext_modules' option (extension '%s'), " +
7
"'sources' must be present and must be " +
8
"a list of source filenames") % ext.name
9
- sources = list(sources)
10
+ sources = sorted(sources)
11
12
ext_path = self.get_ext_fullpath(ext.name)
13
depends = sources + ext.depends
14