.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DH_PYPY" 1 "" "" "" .SH NAME dh_pypy \- calculates PyPy dependencies, adds maintainer scripts to byte compile files, etc. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 dh_pypy \-p PACKAGE [\-V [X.Y][\-][A.B]] DIR [\-X REGEXPR] .UNINDENT .UNINDENT .SH DESCRIPTION .SS QUICK GUIDE FOR MAINTAINERS .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .IP \(bu 2 build\-depend on pypy and dh\-python, .IP \(bu 2 add \fI${pypy:Depends}\fP to Depends .IP \(bu 2 build module/application using its standard build system, .IP \(bu 2 install files to the standard locations, .IP \(bu 2 add \fIpypy\fP to dh\(aqs \-\-with option, or: .IP \(bu 2 call \fBdh_pypy\fP in the \fIbinary\-*\fP target, .UNINDENT .UNINDENT .UNINDENT .SS NOTES .SS dependencies .sp dh_pypy tries to translate Python dependencies from the \fIrequires.txt\fP file to Debian dependencies. In many cases, this works without any additional configuration because dh_pypy comes with a build\-in mapping of Python module names to Debian packages that is periodically regenerated from the Debian archive. By default, the version information in the Python dependencies is discarded. If you want dh_pypy to generate more strict dependencies (e.g. to avoid ABI problems), or if the automatic mapping does not work correctly for your package, you have to provide dh_pypy with additional rules for the translation of Python module to Debian package dependencies. .sp For a package \fIpypy\-foo\fP that depends on a package \fIpypy\-bar\fP, there are two files that may provide such rules: .INDENT 0.0 .IP 1. 3 If the \fIpypy\-foo\fP source package ships with a \fIdebian/pypy\-overrides\fP file, this file is used by dh_pypy during the build of \fIpypy\-foo\fP\&. .IP 2. 3 If the \fIpypy\-bar\fP source package ships with a \fIdebian/pypy\-bar.pydist\fP file (and uses dh_pypy), this file will be included in the binary package as \fI/usr/share/dh\-python/dist/pypy/pypy\-bar\fP\&. During the build of \fIpypy\-foo\fP, dh_pypy will then find and use the file. .UNINDENT .sp Both files have the same format described in \fI/usr/share/doc/dh\-python/README.PyDist\fP\&. If all you want is to generate versioned dependencies (and assuming that the \fIpypy\-bar\fP package provides the \fIpybar\fP Python module), in most cases it will be sufficient to put the line \fBpybar pypy\-bar; PEP386\fP into either of the above files. .SS namespace feature .sp dh_pypy parses Egg\(aqs namespace_packages.txt files (in addition to \-\-namespace command line argument(s)) and drops empty __init__.py files from binary package. pypycompile will regenerate them at install time and pypyclean will remove them at uninstall time (if they\(aqre no longer used in installed packages). It\(aqs still a good idea to provide __init__.py file in one of binary packages (even if all other packages use this feature). .SS private dirs .sp \fI/usr/share/foo\fP, \fI/usr/share/games/foo\fP, \fI/usr/lib/foo\fP and \fI/usr/lib/games/foo\fP private directories are scanned for Python files by default (where \fIfoo\fP is binary package name). If your package ships Python files in some other directory, add another dh_pypy call in debian/rules with directory name as an argument \- you can use different set of options in this call. If you need to change options for a private directory that is checked by default, invoke dh_pypy with \-\-skip\-private option and add another call with a path to this directory and new options. .SS debug packages .sp In binary packages which name ends with \fI\-dbg\fP, all files in \fI/usr/lib/pypy/dist\-packages/\fP directory that have extensions different than \fIso\fP or \fIh\fP are removed by default. Use \-\-no\-dbg\-cleaning option to disable this feature. .SS overriding supported / default PyPy versions .sp If you want to override system\(aqs list of supported PyPy versions or the default one (f.e. to build a package that includes symlinks for older version of PyPy or compile .py files only for given interpreter version), you can do that via \fIDEBPYPY_SUPPORTED\fP and/or \fIDEBPYPY_DEFAULT\fP env. variables. .SH OPTIONS .INDENT 0.0 .TP .B \-\-version show program\(aqs version number and exit .TP .B \-h\fP,\fB \-\-help show help message and exit .TP .B \-\-no\-guessing\-deps disable guessing dependencies .TP .B \-\-no\-dbg\-cleaning do not remove any files from debug packages .UNINDENT .sp \-\-no\-ext\-rename do not add magic tags nor multiarch tuples to extension file names .INDENT 0.0 .TP .B \-\-no\-shebang\-rewrite do not rewrite shebangs .TP .B \-\-skip\-private don\(aqt check private directories .TP .B \-v\fP,\fB \-\-verbose turn verbose mode on .TP .B \-i\fP,\fB \-\-indep act on architecture independent packages .TP .B \-a\fP,\fB \-\-arch act on architecture dependent packages .TP .B \-q\fP,\fB \-\-quiet be quiet .TP .BI \-p \ PACKAGE\fR,\fB \ \-\-package\fB= PACKAGE act on the package named PACKAGE .TP .BI \-N \ NO_PACKAGE\fR,\fB \ \-\-no\-package\fB= NO_PACKAGE do not act on the specified package .TP .BI \-X \ REGEXPR\fR,\fB \ \-\-exclude\fB= REGEXPR exclude items that match given REGEXPR. You may use this option multiple times to build up a list of things to exclude. .TP .B \-\-compile\-all compile all files from given private directory in postinst/rtupdate not just the ones provided by the package (i.e. do not pass the \-\-package parameter to py3compile/py3clean) .TP .B \-\-accept\-upstream\-versions accept upstream versions while translating Python dependencies into Debian ones .TP .BI \-\-depends\fB= DEPENDS translate given requirements into Debian dependencies and add them to ${pypy:Depends}. Use it for missing items in requires.txt .TP .BI \-\-depends\-sections\fB= SECTIONS translate requirements from given sections of requres.txt file into Debian dependencies and add them to ${pypy:Depends}. .TP .BI \-\-recommends\fB= RECOMMENDS translate given requirements into Debian dependencies and add them to ${pypy:Recommends} .TP .BI \-\-recommends\-sections\fB= SECTIONS translate requirements from given sections of requres.txt file into Debian dependencies and add them to ${pypy:Recommends}. .TP .BI \-\-suggests\fB= SUGGESTS translate given requirements into Debian dependencies and add them to ${pypy:Suggests} .TP .BI \-\-suggests\-sections\fB= SECTIONS translate requirements from given sections of requres.txt file into Debian dependencies and add them to ${pypy:Suggests}. .TP .BI \-\-requires\fB= FILENAME translate requirements from given file(s) into Debian dependencies and add them to ${pypy:Depends} .TP .BI \-\-shebang\fB= COMMAND use given command as shebang in scripts .TP .B \-\-ignore\-shebangs do not translate shebangs into Debian dependencies .UNINDENT .SH SEE ALSO .INDENT 0.0 .IP \(bu 2 /usr/share/doc/dh\-python/README.PyDist .IP \(bu 2 pybuild(1) .IP \(bu 2 \fI\%http://deb.li/dhpy\fP \- most recent version of this document .UNINDENT .SH AUTHOR Piotr Ożarowski, 2013 .\" Generated by docutils manpage writer. .