[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ A ] [ B ] [ C ] [ next ]

# Debian Python Policy

## Abstract

This document describes the packaging of Python within the Debian GNU/Linux distribution and the policy requirements for packaged Python programs and modules.

## Copyright Notice

Copyright © 1999, 2001, 2003, 2006, 2009, 2010 Software in the Public Interest

This manual is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

A copy of the GNU General Public License is available as `/usr/share/common-licences/GPL` in the Debian GNU/Linux distribution or on the World Wide Web at `The GNU General Public License`.

You can also obtain it by writing to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.

## Contents

- 1 Python Packaging
  - 1.1 Versions
  - 1.2 Main packages
  - 1.3 Minimal packages
  - 1.4 Python Interpreter
    - 1.4.1 Interpreter Name
    - 1.4.2 Interpreter Location
  - 1.5 Module Path
  - 1.6 Hooks for updates to installed runtimes
  - 1.7 Documentation
- 2 Packaged Modules
  - 2.1 Types of Python Modules
  - 2.2 Module Package Names
  - 2.3 Specifying Supported Versions
  - 2.4 Dependencies
  - 2.5 Provides
  - 2.6 Modules Byte-Compilation
- 3 Python Programs
  - 3.1 Programs using the default python
    - 3.1.1 Programs Shipping Private Modules
  - 3.2 Programs Using a Particular Python Version
- 4 Programs Embedding Python
  - 4.1 Building Embedded Programs
  - 4.2 Embedded Python Dependencies
- 5 Interaction with Locally Installed Python Versions
- A Build Dependencies
- B Packaging Tools
  - B.1 distutils
  - B.2 python-support
  - B.3 python-central
  - B.4 CDBS
- C Upgrade Procedure

[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ A ] [ B ] [ C ] [ next ]

Debian Python Policy