Source

pycurl / INSTALL

Full commit
You need Python and libcurl (version 7.9.5 or greater) installed on your
system to use pycurl.

To build pycurl for Python 1.5.2 you also need the distutils package,
which you can download from:

	http://www.python.org/sigs/distutils-sig/download.html

Assuming that distutils is installed (which it is by default on Python
versions above 1.5.2) build and install pycurl with the following
commands:

	(if necessary, become root)
	tar -zxvf pycurl-$VER.tar.gz
	cd pycurl-$VER
	python setup.py install

$VER should be substituted with the version number, e.g. 0.3.0.

You can also install by hand which does not require distutils.  Edit
the 'src/Makefile' in the distribution directory to suit your setup.
Type 'make' and copy the file 'src/pycurlmodule.so' to the site-package
directory of your Python installation (for example
/usr/lib/python2.0/site-packages).

When installing on Windows, you need to manually configure three path
settings in setup.py defined by the following variables:

	W32_INCLUDE	- Path to the libcurl 'include' directory
	W32_LIB		- Path to the libcurl 'lib' directory
	W32_EXTRA_OBJ	- Path to libcurl library file itself

Then run 'python setup.py install' as usual.  Note that you currently
need Visual C/C++ installed to build pycurl.  If someone can provide
the necessary modifications (if any) to setup.py to build with other
compilers (e.g. Cygwin or Borland/Inprise) I'd be happy to include
that.