Files
Joshua Root 9fd97292e6 python3*: protect against issues with long CFLAGS
Prevent line wrapping in _sysconfigdata.py so that '-arch foo' can't be
split across multiple lines, preventing the reinplace from removing it
correctly. In practice this only seems to have happened with universal
builds.

All variables being on a single line also means that awk is no longer
needed to edit LINKFORSHARED.

Also fix implicit declaration errors in python35's configure script.

Closes: https://trac.macports.org/ticket/61282
2021-03-16 01:39:50 +11:00

12 lines
508 B
Diff

--- Lib/sysconfig.py.orig 2021-02-16 12:29:22.000000000 +1100
+++ Lib/sysconfig.py 2021-03-16 00:38:17.000000000 +1100
@@ -409,7 +409,7 @@
f.write('# system configuration generated and used by'
' the sysconfig module\n')
f.write('build_time_vars = ')
- pprint.pprint(vars, stream=f)
+ pprint.pprint(vars, stream=f, width=4000)
# Create file used for sys.path fixup -- see Modules/getpath.c
with open('pybuilddir.txt', 'w', encoding='ascii') as f: