-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
30 lines (23 loc) · 1.03 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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=<python_prefix>
$ make
$ make install # may require superuser access
To build from CVS, use this line instead of the configure line above:
$ ./autogen.sh --prefix=<python_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.
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
Install method2 - alternative install method
---------------
1. Untar the .tar.gz file
2. cd into the resulting directory
3. python setup.py install