/usr/share/pyshared/qm/setup.py is in qmtest 2.4.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | ########################################################################
#
# File: setup.py
# Author: Mark Mitchell
# Date: 01/02/2002
#
# Contents:
# QM Distutils setup script.
#
# Copyright (c) 2002 by CodeSourcery, LLC. All rights reserved.
#
########################################################################
########################################################################
# Imports
########################################################################
from distutils.core import setup
import os
import os.path
import string
########################################################################
# Functions
########################################################################
def find_packages_r(packages, dirname, names):
"""If 'dirname' is a QM package, add it to 'packages'.
'packages' -- A mutable sequence of package names.
'dirname' -- The (relative) path from the base of the QM package
to the directory.
'names' -- A mutable sequence of file names indicating files (and
directories) contained in the directory given by 'dirname'."""
# If the directory contains a file called __init__.py, it is a
# package. Directories named "classes" contain extension classes.
if "__init__.py" in names or os.path.basename(dirname) == "classes":
# Replace a leading "." with "qm".
d = "qm" + dirname[1:]
# Replace path separators with periods.
d = string.replace(d, os.sep, ".")
if os.altsep:
d = string.replace(d, os.altsep, ".")
packages.append(d)
# Exclude directories named "build"; they are created by Distutils.
if "build" in names:
names.remove("build")
########################################################################
# Main Program
########################################################################
# Find all of the packages that make up QM.
packages = []
os.path.walk(".", find_packages_r, packages)
setup(name="qm",
version="1.1",
packages=packages,
package_dir={ 'qm' : '.' })
|