chiark / gitweb /
Add initial python2 package
[termux-packages] / packages / python2 / setup.py.patch
1 diff -u -r ../Python-2.7.10/setup.py ./setup.py
2 --- ../Python-2.7.10/setup.py   2015-05-23 12:09:25.000000000 -0400
3 +++ ./setup.py  2015-09-16 20:36:19.281639713 -0400
4 @@ -294,6 +294,9 @@
5                            (ext.name, sys.exc_info()[1]))
6              self.failed.append(ext.name)
7              return
8 +
9 +       return # Skip import check which does not work when cross compiling
10 +
11          # Workaround for Mac OS X: The Carbon-based modules cannot be
12          # reliably imported into a command-line Python
13          if 'Carbon' in ext.extra_link_args: