Kovid Goyal 95f29656fa Edit Book: Fix undocked windows not resizable on OS X
Caused by a regression in Qt.
https://bugreports.qt.io/browse/QTBUG-46882

Also, add the build scripts for calibre dependencies on OSX and linux to
the source tree.
2016-06-20 11:03:03 +05:30

12 lines
415 B
Bash
Executable File

#!/bin/bash
export CFLAGS="$CFLAGS -mmacosx-version-min=10.7"
export LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names -mmacosx-version-min=10.7"
cd $SW/build/Pillow* && \
echo Disabling zip_safe && \
python -c "f = open('setup.py', 'r+b'); raw = f.read(); import re; raw = re.sub(r'zip_safe\s*=\s*True', 'zip_safe=False', raw); f.seek(0); f.truncate(0); f.write(raw)" && \
python setup.py install