Products and Services Support Training Documentation Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

CCVS Administration Guide: Python Installation

CCVS Administrator's Guide
Building the CCVS Python Interface

Version 3.3


Revised February 15, 2025
Red Hat, Inc.
2600 Meridian Pkwy
Durham, NC 27713
919-547-0012


Back to main Documentation page
Back to Administrator's Guide
 

Table of Contents

Overview
Finding the Source Code
Building the Python Module
Installing the Python Module
Using CCVS in Python
 

Overview

The Python interface to CCVS must sometimes be built after the rest of CCVS is installed. This is the case, for example, when you're using a distribution that doesn't come with a version of Python. If we can't make sure we're using the same version of Python that you are, it may not be safe for us to distribute a pre-built version of the Python interface.

Finding the Source Code

The source code for the Python interface is in src/other under the directory in which you installed CCVS. So, if you used the default location, it would be /usr/local/ccvs/src/other. The file ccvsmodule.c is the Python module source code.

Building the Python Module

On a typical Linux system that has the Python development environment installed, the following command should build the CCVS python module.
gcc -shared -Wl,-soname,ccvsmodule.so -o ccvsmodule.so
      -I/usr/local/ccvs/include -I/usr/include/python1.5 ccvsmodule.c
      -L/usr/local/ccvs/lib -lccvs -lc

Installing the Python Module

The normal install location for the Python for systems on which we pre-build it is the lib/python directory under the directory in which you installed CCVS. So, if you used the default location, it would be /usr/local/ccvs/lib/python. You should install the module you've built into that location; if you do this, you can set the PYTHONPATH environment variable as described in the Python programmers' guide.

Using CCVS in Python

See the Python Language API.
  <.php3>

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat