1.2 Installing

The Sybase package uses the distutils package so all you need to do is type the following command as root:

python setup.py install

To disable bulkcopy support you should use the following commands:

python setup.py build_ext -U WANT_BULKCOPY
python setup.py install

The default build does not enable threading in the extension module so if you want threading enabled you will have to do this:

python setup.py build_ext -D WANT_THREADS
python setup.py install

This is the first release which supports FreeTDS. To compile for FreeTDS you should use the following commands:

python setup.py build_ext -D HAVE_FREETDS -U WANT_BULKCOPY
python setup.py install

To build with FreeTDS and threads use the following commands:

python setup.py build_ext -D WANT_THREADS,HAVE_FREETDS -U WANT_BULKCOPY
python setup.py install

You will probably experience some segfaults with FreeTDS using the Cursor callproc() method and when using named arguments.

If you have problems with the installation step, edit the setup.py file to specify where Sybase is installed and the name of the client libraries. Make sure that you contact the package author so that the installation process can be made more robust for other people.