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
c24d2aa5
Commit
c24d2aa5
authored
13 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
add a note about private directories
parent
0983ffe1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dh_python2.rst
+21
-1
21 additions, 1 deletion
dh_python2.rst
with
21 additions
and
1 deletion
dh_python2.rst
+
21
−
1
View file @
c24d2aa5
...
...
@@ -40,6 +40,9 @@ in case of architecture independent packages) is required once a list of
supported Python version is changed. It's faster and more robust than its
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
...
...
@@ -47,11 +50,28 @@ to override it. If you want dh_python2 to generate more strict dependencies
/usr/share/doc/python-doc/README.PyDist (provided by python-doc package) for
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
will remove them at uninstall time (if they're no longer used in installed
packages.
packages). It's still a good idea to provide __init__.py file in one of
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.
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