~mitya57/ubuntu/trusty/dh-python/tests-dependencies

« back to all changes in this revision

Viewing changes to pybuild.rst

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2013-09-03 20:20:43 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130903202043-vk28hcj90pnh0t3c
Tags: 1.20130903-1
* dh_python2, dh_python3, dh_pypy:
  - do not rename extensions in directories that include architecture triplet
    as part of the path (closes: 721696)
  - add --no-ext-rename option

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    --test-pytest
64
64
        use pytest module in test step, remember to add python-pytest and/or
65
65
        python3-pytest to Build-Depends
 
66
    --test-tox
 
67
        use tox command in test step, remember to add python-tox
 
68
        to Build-Depends. Requires tox.ini file
66
69
 
67
70
BUILD SYSTEM ARGUMENTS
68
71
----------------------
103
106
variables that can be used in `ARGUMENTS` and `COMMAND`
104
107
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
105
108
* `{version}` will be replaced with current Python version,
 
109
  you can also use `{version.major}`, `{version.minor}`, etc.
106
110
* `{interpreter}` will be replaced with current interpreter,
107
111
* `{dir}` will be replaced with sources directory,
108
112
* `{destdir}` will be replaced with destination directory,
111
115
  (.pybuild/interpreter_version/ by default),
112
116
* `{build_dir}` will be replaced with build directory
113
117
* `{install_dir}` will be replaced with install directory.
 
118
* `{package}` will be replaced with suggested package name,
 
119
  if --name (or PYBUILD_NAME) is set to `foo`, this variable
 
120
  will be replaced to `python-foo`, `python3-foo` or `pypy-foo`
 
121
  depending on interpreter which is used in given iteration.
114
122
 
115
123
DIRECTORIES
116
124
-----------
126
134
      [default: `\.so(\.[^/]*)?$`]
127
135
  --install-dir DIR
128
136
      set installation directory [default: .../dist-packages]
 
137
  --name NAME
 
138
      use this name to guess destination directories
 
139
      (depending on interpreter, "foo" sets debian/python-foo,
 
140
      debian/python3-foo, debian/python3-foo-dbg, etc.)
129
141
 
130
142
variables that can be used in `DIR`
131
143
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167
179
 
168
180
debian/rules file example::
169
181
 
170
 
 export PYBUILD_DESTDIR_python2=debian/python-foo/
171
 
 export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
172
 
 export PYBUILD_DESTDIR_python3=debian/python3-foo/
173
 
 export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
 
182
 #! /usr/bin/make -f
 
183
 export PYBUILD_NAME=foo
174
184
 %:
175
185
        dh $@ --with python2,python3 --buildsystem=pybuild
176
186