aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/debian
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python2.7/debian')
-rw-r--r--examples/python2.7/debian/PVER-minimal.README.Debian.in147
-rw-r--r--examples/python2.7/debian/_sysconfigdata.py6
-rw-r--r--examples/python2.7/debian/pygettext.1108
-rw-r--r--examples/python2.7/debian/python-config.190
4 files changed, 351 insertions, 0 deletions
diff --git a/examples/python2.7/debian/PVER-minimal.README.Debian.in b/examples/python2.7/debian/PVER-minimal.README.Debian.in
new file mode 100644
index 0000000..fc0abc9
--- /dev/null
+++ b/examples/python2.7/debian/PVER-minimal.README.Debian.in
@@ -0,0 +1,147 @@
+Contents of the @PVER@-minimal package
+-----------------------------------------
+
+@PVER@-minimal consists of a minimum set of modules which may be needed
+for python scripts used during the boot process. If other packages
+are needed in these scripts, don't work around the missing module, but
+file a bug report against this package. The modules in this package
+are:
+
+ __builtin__ builtin
+ __future__ module
+ _abcoll module
+ _bisect extension
+ _bytesio extension
+ _codecs builtin
+ _collections extension
+ _fileio extension
+ _functools extension
+ _hashlib extensionx
+ _heapq extension
+ _locale extension
+ _random extension
+ _socket extension
+ _sre builtin
+ _ssl extensionx
+ _struct extension
+ _symtable builtin
+ _sysconfigdata module
+ _sysconfigdata_nd module
+ _types builtin
+ _warnings builtin
+ _weakref extension
+ _weakrefset module
+ abc module
+ atexit module
+ ConfigParser module
+ StringIO module
+ UserDict module
+ cPickle extension
+ cStringIO extension
+ array extension
+ base64 module
+ binascii extension
+ bisect module
+ cmath extension
+ codecs module
+ collections module
+ compileall module
+ copy module
+ copy_reg module
+ dis module
+ errno builtin
+ exceptions builtin
+ fcntl extension
+ fnmatch module
+ functools module
+ gc builtin
+ genericpath module
+ getopt module
+ glob module
+ grp extension
+ hashlib module
+ heapq module
+ imp builtin
+ inspect module
+ itertools extension
+ keyword module
+ linecache module
+ logging package
+ marshal builtin
+ math extension
+ md5 module
+ opcode module
+ operator extension
+ optparse module
+ os module
+ pickle module
+ platform module
+ popen2 module
+ posix builtin
+ posixpath module
+ pkgutil module
+ pwd builtin
+ py_compile module
+ random module
+ re module
+ repr module
+ runpy module
+ select extension
+ sha module
+ shutil module
+ signal builtin
+ socket module
+ spwd extension
+ sre module
+ sre_compile module
+ sre_constants module
+ sre_parse module
+ ssl module
+ stat module
+ string module
+ strop extension
+ struct module
+ subprocess module
+ sys builtin
+ syslog extension
+ sysconfig module
+ tempfile module
+ textwrap module
+ time extension
+ token module
+ thread builtin
+ token module
+ tokenize module
+ traceback module
+ types module
+ unicodedata extension
+ weakref module
+ warnings module
+ zipimport extension
+ zlib extension
+
+Included are as well the codecs and stringprep modules, and the encodings
+modules for all encodings except the multibyte encodings and the bz2 codec.
+
+The following modules are excluded, their import is guarded from the
+importing module:
+
+ Used in Excluded
+ ------------ ------------------------------------
+ os nt ntpath os2 os2emxpath mac macpath
+ riscos riscospath riscosenviron
+ optparse gettext
+ pickle doctest
+ subprocess threading
+
+This list was derived by looking at the modules in the perl-base package,
+then adding python specific "core modules".
+
+TODO's
+------
+
+- time.strptime cannot be used. The required _strptime module is not
+ included in the -minimal package yet. _strptime, locale, _locale and
+ calendar have to be added.
+
+- modules used very often in the testsuite: copy, cPickle, operator.
diff --git a/examples/python2.7/debian/_sysconfigdata.py b/examples/python2.7/debian/_sysconfigdata.py
new file mode 100644
index 0000000..c3a6a46
--- /dev/null
+++ b/examples/python2.7/debian/_sysconfigdata.py
@@ -0,0 +1,6 @@
+import sys
+
+if hasattr(sys, 'gettotalrefcount'):
+ from _sysconfigdata_d import *
+else:
+ from _sysconfigdata_nd import *
diff --git a/examples/python2.7/debian/pygettext.1 b/examples/python2.7/debian/pygettext.1
new file mode 100644
index 0000000..1140167
--- /dev/null
+++ b/examples/python2.7/debian/pygettext.1
@@ -0,0 +1,108 @@
+.TH PYGETTEXT 1 "" "pygettext 1.4"
+.SH NAME
+pygettext \- Python equivalent of xgettext(1)
+.SH SYNOPSIS
+.B pygettext
+[\fIOPTIONS\fR] \fIINPUTFILE \fR...
+.SH DESCRIPTION
+pygettext is deprecated. The current version of xgettext supports
+many languages, including Python.
+
+pygettext uses Python's standard tokenize module to scan Python
+source code, generating .pot files identical to what GNU xgettext generates
+for C and C++ code. From there, the standard GNU tools can be used.
+.PP
+pygettext searches only for _() by default, even though GNU xgettext
+recognizes the following keywords: gettext, dgettext, dcgettext,
+and gettext_noop. See the \fB\-k\fR/\fB\--keyword\fR flag below for how to
+augment this.
+.PP
+.SH OPTIONS
+.TP
+\fB\-a\fR, \fB\-\-extract\-all\fR
+Extract all strings.
+.TP
+\fB\-d\fR, \fB\-\-default\-domain\fR=\fINAME\fR
+Rename the default output file from messages.pot to name.pot.
+.TP
+\fB\-E\fR, \fB\-\-escape\fR
+Replace non-ASCII characters with octal escape sequences.
+.TP
+\fB\-D\fR, \fB\-\-docstrings\fR
+Extract module, class, method, and function docstrings.
+These do not need to be wrapped in _() markers, and in fact cannot
+be for Python to consider them docstrings. (See also the \fB\-X\fR option).
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Print this help message and exit.
+.TP
+\fB\-k\fR, \fB\-\-keyword\fR=\fIWORD\fR
+Keywords to look for in addition to the default set, which are: _
+.IP
+You can have multiple \fB\-k\fR flags on the command line.
+.TP
+\fB\-K\fR, \fB\-\-no\-default\-keywords\fR
+Disable the default set of keywords (see above).
+Any keywords explicitly added with the \fB\-k\fR/\fB\--keyword\fR option
+are still recognized.
+.TP
+\fB\-\-no\-location\fR
+Do not write filename/lineno location comments.
+.TP
+\fB\-n\fR, \fB\-\-add\-location\fR
+Write filename/lineno location comments indicating where each
+extracted string is found in the source. These lines appear before
+each msgid. The style of comments is controlled by the
+\fB\-S\fR/\fB\--style\fR option. This is the default.
+.TP
+\fB\-o\fR, \fB\-\-output\fR=\fIFILENAME\fR
+Rename the default output file from messages.pot to FILENAME.
+If FILENAME is `-' then the output is sent to standard out.
+.TP
+\fB\-p\fR, \fB\-\-output\-dir\fR=\fIDIR\fR
+Output files will be placed in directory DIR.
+.TP
+\fB\-S\fR, \fB\-\-style\fR=\fISTYLENAME\fR
+Specify which style to use for location comments.
+Two styles are supported:
+.RS
+.IP \(bu 4
+Solaris # File: filename, line: line-number
+.IP \(bu 4
+GNU #: filename:line
+.RE
+.IP
+The style name is case insensitive.
+GNU style is the default.
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Print the names of the files being processed.
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Print the version of pygettext and exit.
+.TP
+\fB\-w\fR, \fB\-\-width\fR=\fICOLUMNS\fR
+Set width of output to columns.
+.TP
+\fB\-x\fR, \fB\-\-exclude\-file\fR=\fIFILENAME\fR
+Specify a file that contains a list of strings that are not be
+extracted from the input files. Each string to be excluded must
+appear on a line by itself in the file.
+.TP
+\fB\-X\fR, \fB\-\-no\-docstrings\fR=\fIFILENAME\fR
+Specify a file that contains a list of files (one per line) that
+should not have their docstrings extracted. This is only useful in
+conjunction with the \fB\-D\fR option above.
+.PP
+If `INPUTFILE' is -, standard input is read.
+.SH BUGS
+pygettext attempts to be option and feature compatible with GNU xgettext
+where ever possible. However some options are still missing or are not fully
+implemented. Also, xgettext's use of command line switches with option
+arguments is broken, and in these cases, pygettext just defines additional
+switches.
+.SH AUTHOR
+pygettext is written by Barry Warsaw <barry@zope.com>.
+.PP
+Joonas Paalasmaa <joonas.paalasmaa@iki.fi> put this manual page together
+based on "pygettext --help".
diff --git a/examples/python2.7/debian/python-config.1 b/examples/python2.7/debian/python-config.1
new file mode 100644
index 0000000..542f404
--- /dev/null
+++ b/examples/python2.7/debian/python-config.1
@@ -0,0 +1,90 @@
+.TH PYTHON\-CONFIG 1 "November 27, 2011"
+.SH NAME
+python\-config \- output build options for python C/C++ extensions or embedding
+.SH SYNOPSIS
+.BI "python\-config"
+[
+.BI "\-\-prefix"
+]
+[
+.BI "\-\-exec\-prefix"
+]
+[
+.BI "\-\-includes"
+]
+[
+.BI "\-\-libs"
+]
+[
+.BI "\-\-cflags"
+]
+[
+.BI "\-\-ldflags"
+]
+[
+.BI "\-\-help"
+]
+.SH DESCRIPTION
+.B python\-config
+helps compiling and linking programs, which embed the Python interpreter, or
+extension modules that can be loaded dynamically (at run time) into
+the interpreter.
+.SH OPTIONS
+.TP
+.BI "\-\-cflags"
+print the C compiler flags.
+.TP
+.BI "\-\-ldflags"
+print the flags that should be passed to the linker.
+.TP
+.BI "\-\-includes"
+similar to \fI\-\-cflags\fP but only with \-I options (path to python header files).
+.TP
+.BI "\-\-libs"
+similar to \fI\-\-ldflags\fP but only with \-l options (used libraries).
+.TP
+.BI "\-\-prefix"
+prints the prefix (base directory) under which python can be found.
+.TP
+.BI "\-\-exec\-prefix"
+print the prefix used for executable program directories (such as bin, sbin, etc).
+.TP
+.BI "\-\-help"
+print the usage message.
+.PP
+
+.SH EXAMPLES
+To build the singe\-file c program \fIprog\fP against the python library, use
+.PP
+.RS
+gcc $(python\-config \-\-cflags \-\-ldflags) progr.cpp \-o progr.cpp
+.RE
+.PP
+The same in a makefile:
+.PP
+.RS
+CFLAGS+=$(shell python\-config \-\-cflags)
+.RE
+.RS
+LDFLAGS+=$(shell python\-config \-\-ldflags)
+.RE
+.RS
+all: progr
+.RE
+
+To build a dynamically loadable python module, use
+.PP
+.RS
+gcc $(python\-config \-\-cflags \-\-ldflags) \-shared \-fPIC progr.cpp \-o progr.so
+.RE
+
+.SH "SEE ALSO"
+python (1)
+.br
+http://docs.python.org/extending/extending.html
+.br
+/usr/share/doc/python/faq/extending.html
+
+.SH AUTHORS
+This manual page was written by Johann Felix Soden <johfel@gmx.de>
+for the Debian project (and may be used by others).