Updates for building and bundling with Python3
Note that building currently requires bouncing back and forth between python2 and python3.
This commit is contained in:
parent
092a9025dc
commit
3f23c2c5cd
14
mac/Pillow-tk-setup.patch
Normal file
14
mac/Pillow-tk-setup.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -c /Users/john/Development/gtk-sources/Pillow-2.7.0/setup.py\~ /Users/john/Development/gtk-sources/Pillow-2.7.0/setup.py
|
||||
--- a/setup.py Fri Jan 2 03:52:21 2015
|
||||
+++ b/setup.py Sun Mar 22 14:54:09 2015
|
||||
@@ -575,7 +575,7 @@
|
||||
exts.append(Extension(
|
||||
"PIL._webp", ["_webp.c"], libraries=libs, define_macros=defs))
|
||||
|
||||
- if sys.platform == "darwin":
|
||||
+ if _tkinter and sys.platform == "darwin":
|
||||
# locate Tcl/Tk frameworks
|
||||
frameworks = []
|
||||
framework_roots = [
|
||||
|
||||
Diff finished. Sun Mar 22 20:37:52 2015
|
@ -35,11 +35,6 @@
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/immodules/im-quartz.so
|
||||
</binary>
|
||||
|
||||
<!-- Copy in the theme engines, -->
|
||||
<binary>
|
||||
${prefix}/lib/gtk-3.0/${pkg:${gtk}:gtk_binary_version}/theming-engines/*.so
|
||||
</binary>
|
||||
|
||||
<!-- And the print backends -->
|
||||
<binary>
|
||||
${prefix}/lib/${gtkdir}/${pkg:${gtk}:gtk_binary_version}/printbackends/*.so
|
||||
@ -50,7 +45,7 @@
|
||||
</binary>
|
||||
|
||||
<binary recurse="True">
|
||||
${prefix}/lib/python2.7/*.so
|
||||
${prefix}/lib/python3.4/*.so
|
||||
</binary>
|
||||
|
||||
<binary>
|
||||
@ -62,7 +57,7 @@
|
||||
</binary-->
|
||||
|
||||
<binary>
|
||||
${prefix}/lib/libgtkmacintegration.2.dylib
|
||||
${prefix}/lib/libgtkmacintegration-gtk3.2.dylib
|
||||
</binary>
|
||||
|
||||
<binary>
|
||||
@ -90,7 +85,7 @@
|
||||
</binary>
|
||||
|
||||
<binary>
|
||||
${prefix}/lib/libtiff.3.dylib
|
||||
${prefix}/lib/libtiff.5.dylib
|
||||
</binary>
|
||||
|
||||
<binary dest="${bundle}/Contents/MacOS/">
|
||||
@ -145,19 +140,15 @@
|
||||
</data>
|
||||
|
||||
<data recurse="True">
|
||||
${prefix}/lib/python2.7/*.py
|
||||
${prefix}/lib/python3.4/*.py
|
||||
</data>
|
||||
|
||||
<data>
|
||||
${prefix}/lib/python2.7/config/
|
||||
${prefix}/lib/python3.4/config-3.4m/
|
||||
</data>
|
||||
|
||||
<data>
|
||||
${prefix}/lib/python2.7/site-packages/gramps/gen/utils/resource-path
|
||||
</data>
|
||||
|
||||
<data>
|
||||
${prefix}/include/python2.7/pyconfig.h
|
||||
${prefix}/lib/python3.4/site-packages/gramps/gen/utils/resource-path
|
||||
</data>
|
||||
|
||||
<data>
|
||||
@ -177,7 +168,7 @@
|
||||
</data>
|
||||
|
||||
<data recurse="True">
|
||||
${prefix}/lib/python2.7/site-packages/gramps/*.glade
|
||||
${prefix}/lib/python3.4/site-packages/gramps/*.glade
|
||||
</data>
|
||||
|
||||
<data>
|
||||
|
@ -23,7 +23,7 @@ export GTK_PATH="$bundle_res"
|
||||
export PANGO_RC_FILE="$bundle_etc/pango/pangorc"
|
||||
export PANGO_SYSCONFDIR="$bundle_etc"
|
||||
export PANGO_LIBDIR="$bundle_lib"
|
||||
export GDK_PIXBUF_MODULE_FILE="$bundle_etc/gtk-3.0/gdk-pixbuf.loaders"
|
||||
export GDK_PIXBUF_MODULE_FILE="$bundle_lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
||||
if [ `uname -r | cut -d . -f 1` -ge 10 ]; then
|
||||
export GTK_IM_MODULE_FILE="$bundle_etc/gtk-3.0/gtk.immodules"
|
||||
fi
|
||||
@ -32,7 +32,7 @@ export GVBINDIR="$bundle_lib/graphviz"
|
||||
|
||||
|
||||
#Set $PYTHON to point inside the bundle
|
||||
PYVER=2.7
|
||||
PYVER=3.4
|
||||
export PYTHON="$bundle_contents/MacOS/python"
|
||||
export PYTHONHOME="$bundle_res"
|
||||
|
||||
|
@ -54,14 +54,14 @@ gtk-mac-bundler gtk-osx-build/projects/gramps/gramps.bundle
|
||||
|
||||
-->
|
||||
|
||||
<include href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"/>
|
||||
<!--include href="/Users/john/Development/GTK-OSX/gtk-osx-build/modulesets-stable/gtk-osx.modules"/-->
|
||||
<!--include href="http://git.gnome.org/browse/gtk-osx/plain/modulesets-stable/gtk-osx.modules"/-->
|
||||
<include href="/Users/john/Development/GTK-OSX/gtk-osx-build/modulesets-stable/gtk-osx.modules"/>
|
||||
|
||||
<distutils id="gramps-git" supports-non-srcdir-builds="no">
|
||||
<branch module="source" repo="gramps"
|
||||
checkoutdir="gramps-git"/>
|
||||
<dependencies>
|
||||
<dep package="meta-gtk-osx-python-gtk3"/>
|
||||
<dep package="meta-gtk-osx-python3-gtk3"/>
|
||||
<dep package="meta-gtk-osx-gtk3-core-themes"/>
|
||||
<dep package="goocanvas2"/>
|
||||
<dep package="librsvg"/>
|
||||
@ -144,8 +144,12 @@ gtk-mac-bundler gtk-osx-build/projects/gramps/gramps.bundle
|
||||
</autotools>
|
||||
|
||||
<distutils id="pil">
|
||||
<branch module="Imaging-1.1.7.tar.gz" version="1.1.7" repo="pythonware">
|
||||
<patch file="Imaging-Freetype2.patch" strip="1"/>
|
||||
<!--branch module="Imaging-1.1.7.tar.gz" version="1.1.7" repo="pythonware">
|
||||
<patch file="Imaging-Freetype2.patch" strip="1"/-->
|
||||
<branch module="P/Pillow/Pillow-2.7.0.tar.gz" version="2.7.0"
|
||||
repo="pymodules"
|
||||
hash="md5:3fdc9f16a1b60366ae8158b424655d10">
|
||||
<patch file="Pillow-tk-setup.patch" strip="1"/>
|
||||
</branch>
|
||||
</distutils>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user