[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sketch on Windows (It's working)
From: |
Joonas Paalasmaa |
Subject: |
Re: Sketch on Windows (It's working) |
Date: |
Sun, 12 Oct 2003 00:39:32 GMT |
Bernhard Herzog writes:
Joonas Paalasmaa <address@hidden> writes:
Is there some reason why e.g. SKFontMetricType is defined with: extern
DL_IMPORT(PyTypeObject) SKFontMetricType;
I don't remember :). I probably saw it done that way in some other
python modules. You can safely remove it. It's certainly not needed on
GNU/Linux.
I submitted the patch to Savannah.
This is the setup script I used in building Sketch for Windows.
For example "python setup.py build --compiler=mingw32" compiles it using
MinGW.
# Sketch setup.py
from distutils.core import setup, Extension
import glob
pil_dir = "C:/python/include/pil"
libraries = ["gtk-win32-2.0", "gdk-win32-2.0", "gmodule-2.0",
"gobject-2.0", "glib-2.0", "libart_lgpl", "libm"]
libdir = ["C:/Dev-C++/lib"]
gtk_dirs = ["C:/Dev-C++/include/gtk-2.0/", "C:/Dev-C++/include/glib-2.0",
"C:/Dev-C++/include/pango-1.0",
"C:/Dev-C++/lib/glib-2.0/include",
"C:/Dev-C++/lib/gtk-2.0/include", "C:/Dev-C++/include/atk-1.0",
"C:/python/include/pygtk-2.0", "C:/Dev-C++/include/"]
mod_dir = "Sketch/Modules/"
filter_dir = "Filter/"
packages = ["Sketch.Sketch", 'Sketch.Sketch.Base', 'Sketch.Sketch.Editor',
'Sketch.Sketch.Graphics',
'Sketch.Sketch.Lib', 'Sketch.Sketch.Plugin', 'Sketch.Sketch.UI']
version = file("Sketch/VERSION").read().strip()
package_dir = {'Sketch': ''}
ext_modules=[
Extension("Sketch.Modules._type1", [mod_dir+"_type1module.c"]),
Extension("Sketch.Lib.streamfilter", [filter_dir+filename for filename in
("streamfilter.c",
"filterobj.c", "linefilter.c",
"subfilefilter.c",
"base64filter.c", "nullfilter.c",
"stringfilter.c",
"binfile.c", "hexfilter.c")]),
Extension("Sketch.Modules._sketch", [mod_dir+filename for filename in
("_sketchmodule.c",
"skpoint.c", "sktrafo.c", "skrect.c",
"skfm.c",
"curvefunc.c", "curveobject.c", "curvelow.c",
"curvemisc.c", "curvefit.c", "skaux.c",
"skimage.c",
"skcolor.c")], include_dirs=[pil_dir],
libraries=libraries, library_dirs=libdir),
Extension("Sketch.Modules.skread", [mod_dir+"skreadmodule.c"]),
Extension("Sketch.Modules.pstokenize", [mod_dir+"pstokenize.c"],
include_dirs=[filter_dir]),
Extension("Sketch.Modules._libart", [mod_dir+"_libartmodule.c",
mod_dir+"skrender.c"],library_dirs=libdir,
libraries=libraries,
include_dirs=gtk_dirs+[pil_dir]),
Extension("Sketch.Modules._skgtk", [mod_dir+filename for filename in
("_skgtkmodule.c",
"regionobject.c", "imageobject.c",
"clipmask.c",
"skvisual.c", "skgtkimage.c", "skdither.c",
"curvedraw.c")],
include_dirs=gtk_dirs+[pil_dir],
define_macros=[('NO_LIBART',)],
libraries=libraries, library_dirs=libdir)]
datafile_basedir="Lib/site-packages/Sketch/"
setup(name = "Sketch", packages=packages, ext_modules=ext_modules,
version=version, package_dir=package_dir,
data_files=[(datafile_basedir+"Sketch", ["Sketch/VERSION"])])
- Sketch on Windows, Joonas Paalasmaa, 2003/10/07
- Re: Sketch on Windows, Bernhard Herzog, 2003/10/07
- Re: Sketch on Windows (It's working), Joonas Paalasmaa, 2003/10/08
- Re: Sketch on Windows (It's working), Bernhard Herzog, 2003/10/08
- Re: Sketch on Windows (It's working), Joonas Paalasmaa, 2003/10/10
- Re: Sketch on Windows (It's working), Bernhard Herzog, 2003/10/10
- Re: Sketch on Windows (It's working), Joonas Paalasmaa, 2003/10/10
- Re: Sketch on Windows (It's working), Bernhard Herzog, 2003/10/10
- Re: Sketch on Windows (It's working),
Joonas Paalasmaa <=