Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
d3243828
Commit
d3243828
authored
13 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
describe .pyinstall and .pyremove files in dh_python2's manpage
parent
c24d2aa5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/changelog
+1
-1
1 addition, 1 deletion
debian/changelog
dh_python2.rst
+38
-11
38 additions, 11 deletions
dh_python2.rst
with
39 additions
and
12 deletions
debian/changelog
+
1
−
1
View file @
d3243828
...
...
@@ -26,7 +26,7 @@ python-defaults (2.7.2-2) UNRELEASED; urgency=low
each (supported) interpreter detected in shebangs
- /usr/share/pyshared is not added to the package if empty (closes: 623909)
- dh_python2's manpage updated (among other changes, no longer advertises
python:Breaks
,
closes: 631397)
python:Breaks
-
closes: 631397
, describes .pyinstall and .pyremove files
)
-- Piotr Ożarowski <piotr@debian.org> Sun, 12 Jun 2011 13:28:48 +0200
...
...
This diff is collapsed.
Click to expand it.
dh_python2.rst
+
38
−
11
View file @
d3243828
...
...
@@ -42,7 +42,6 @@ competitors, though.
dependencies
------------
dh_python2 tries to translate Python dependencies from requires.txt file to
Debian dependencies, use debian/pydist-overrides or --no-guessing-deps option
to override it. If you want dh_python2 to generate more strict dependencies
...
...
@@ -52,7 +51,6 @@ more information.
namespace feature
-----------------
dh_python2 parses Egg's namespace_packages.txt files (in addition to
--namespace command line argument(s)) and drops empty __init__.py files from
binary package. pycompile will regenerates them at install time and pyclean
...
...
@@ -62,15 +60,44 @@ binary packages (even if all other packages use this feature).
private dirs
------------
dh_python2 is scanning /usr/share/foo, /usr/share/games/foo, /usr/lib/foo and
/usr/lib/games/foo private directories for Python files. If your package is
shipping them in some other directory, add another dh_python2 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 (f.e. a list of
supported Python versions) for a private directory that is checked by default,
invoke dh_python2 with --skip-private option and add another call with a path
to this directory and new options.
`/usr/share/foo`, `/usr/share/games/foo`, `/usr/lib/foo` and
`/usr/lib/games/foo` private directories are scanned for Python files
by default (where `foo` is binary package name). If your package is shipping
Python files in some other directory, add another dh_python2 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 (f.e. a list of supported
Python versions) for a private directory that is checked by default, invoke
dh_python2 with --skip-private option and add another call with a path to this
directory and new options.
pyinstall files
---------------
Files listed in debian/pkg.pyinstall file will be installed as public modules
for all requested Python versions (dh_install doesn't know about python's site-
vs. dist-packages issue).
Syntax: "path/to/file [VERSION_RANGE] [NAMESPACE]". debian directory is
automatically removed from the path, so you can place your files in debian/
directory and install them from this location (if you want to install them in
"debian" namespace, set NAMESPACE to debian). If NAMESPACE is set, all listed
files will be installed in .../dist-packages/NAMESPACE/ directory.
Examples:
* `foo.py` (installs .../dist-packages/foo.py for all supported Python versions)
* `foo/bar.py 2.6-` (installs .../dist-packages/foo/bar.py for versions >= 2.6)
* `foo/bar.py spam` (installs .../dist-packages/spam/bar.py)
* `debian/*.py spam.egg 2.5` (installs .../python2.5/site-packages/spam/egg/\*.py
files)
pyremove files
--------------
If you want to remove some files installed by build system (from all supported
Python versions or only from a subset of these versions), add them to
debian/pkg.pyremove file.
Examples:
* `*.pth` (removes .pth files from .../dist-packages/)
* `bar/baz.py 2.5` (removes .../python2.5/site-packages/bar/baz.py)
OPTIONS
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment