head 1.9; access; symbols RELEASE_1_8_6:1.9 RELEASE_1_8_4:1.9 RELEASE_1_8_2:1.9 RELEASE_1_8_0:1.8 RELEASE_1_6_4:1.8 RELEASE_1_4_12:1.8 RELEASE_1_4_0:1.8 RELEASE_1_2_6:1.7 RELEASE_1_2_2:1.7 RELEASE_1_2_0:1.4 RELEASE_1_1_6:1.3 RELEASE_1_0_2:1.2 RELEASE_1_0_0:1.1 SNAPSHOT_0_9_0:1.1 SNAPSHOT_0_6_0:1.1 SNAPSHOT_0_5_1:1.1 SNAPSHOT_0_5_5:1.1 SNAPSHOT_0_4_0:1.1; locks; strict; comment @# @; 1.9 date 2009.01.01.05.43.59; author stevech1097; state Exp; branches; next 1.8; commitid FLsiUIsdooe91Iwt; 1.8 date 2006.12.21.11.35.35; author stevech1097; state Exp; branches; next 1.7; 1.7 date 2006.08.19.13.14.44; author stevech1097; state Exp; branches; next 1.6; 1.6 date 2006.08.14.08.21.34; author stevech1097; state Exp; branches; next 1.5; 1.5 date 2006.08.04.02.24.21; author stevech1097; state Exp; branches; next 1.4; 1.4 date 2006.06.26.13.59.34; author stevech1097; state Exp; branches; next 1.3; 1.3 date 2005.10.17.02.31.30; author stevech1097; state Exp; branches; next 1.2; commitid 1cfb43530cfa4567; 1.2 date 2005.09.11.00.52.35; author stevech1097; state Exp; branches; next 1.1; commitid 3d2243237fd04567; 1.1 date 2005.02.05.07.26.32; author stevech1097; state Exp; branches; next ; desc @@ 1.9 log @'SC' @ text @Install method1 - preferred method --------------- Using the same install method of install as cairo - GNU autotools. $ python -c "import sys; print sys.prefix" # make a note of the python prefix $ ./configure --prefix= $ make $ make install # may require superuser access To build from CVS, use this line instead of the configure line above: $ ./autogen.sh --prefix= If you're installing to another prefix than the one where Python is installed Python will not be able to find the cairo module until you add $prefix/lib/pythonX.Y/site-packages to the PYTHONPATH variable. Install method2 - alternative install method --------------- 1. Untar the .tar.gz file 2. cd into the resulting directory 3. python setup.py install @ 1.8 log @'SC' @ text @a17 3 If Numeric Python is detected the additional method ImageSurface.create_for_array() will be compiled. @ 1.7 log @'SC' @ text @d18 2 a19 6 If PyGTK or Numeric Python are detected optional modules will be compiled. However, if PyGTK >= 2.7.0 is detected then cairo.gtk is not built since pycairo is now supported directly by PyGTK. To disable PyGTK support use: $ ./configure --without-pygtk @ 1.6 log @'SC' @ text @d1 3 a3 1 Pycairo uses the same method of install as cairo - GNU autotools. d24 7 @ 1.5 log @'SC' @ text @d1 1 a1 1 This package uses automake d3 5 a7 2 $ python -c "import sys; print sys.prefix" # make a note of the python prefix d9 2 a10 9 To build from CVS: $ ./autogen.sh --prefix= or to build from a snapshot release: $ ./configure --prefix= After that, standard build procedures apply: $ make # make install d20 1 a20 2 To disable PyGTK support use @ 1.4 log @'SC' @ text @d20 1 a20 2 If libsvg-cairo, PyGTK or Numeric Python are detected optional modules will be compiled. @ 1.3 log @'SC' @ text @a27 17 Enabling RGBA output (optional) -------------------- An experimental patch is provided which enables RGBA output from a cairo.ImageSurface. It can be used, for example, to transfer cairo images into PIL. 1) Apply the 'get_data' patch to cairo $ cd cairo/src $ patch < [path_to pycairo/patch.cairo-image-surface.c] $ patch < [path_to pycairo/patch.cairo.h] 2) Install cairo 3) Install pycairo see test/to_rgba.py for example uses of 'surface.to_rgba()' @ 1.2 log @'SC' @ text @d28 17 @ 1.1 log @add new files @ text @d21 5 a25 1 be compiled. To disable PyGTK support use @