Codebase list dh-python / 42fc6ab
pybuild: Make --ext-dest-dir work again, when --name is specified. (closes: 942882) Stefano Rivera 1 year, 8 months ago
7 changed file(s) with 21 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1717 ${python3:Depends}, too. (closes: 1017001)
1818 * Port dh_python2/dh_python3/dh_pypy to argparse.
1919 * dh_*: Parse -O=... options provided by debhelper. (closes: 949286)
20 * pybuild: Make --ext-dest-dir work again, when --name is specified.
21 (closes: 942882)
2022
2123 -- Stefano Rivera <stefanor@debian.org> Wed, 11 May 2022 11:45:37 -0400
2224
331331
332332 def move_to_ext_destdir(i, version, context):
333333 """Move built C extensions from the general destdir to ext_destdir"""
334 args = get_args(context, 'install', version, interpreter)
334335 ext_destdir = get_option('ext_destdir', i, version)
335336 if ext_destdir:
336 move_matching_files(context['destdir'], ext_destdir,
337 move_matching_files(args['destdir'], ext_destdir,
337338 get_option('ext_pattern', i, version),
338339 get_option('ext_sub_pattern', i, version),
339340 get_option('ext_sub_repl', i, version))
22
33 check:
44 test -f debian/python3-foo/usr/lib/python3/dist-packages/foo.py
5 test -f debian/python3-foo-ext/usr/lib/python3/dist-packages/_foo.abi3.so
56 test -e test-executed
67
78 clean:
(New empty file)
22 Priority: optional
33 Maintainer: Piotr Ożarowski <piotr@debian.org>
44 Build-Depends: debhelper-compat (= 12)
5 , python3-all
5 , python3-all-dev
66 , python3-setuptools
77 , python3-tomli
88 , tox
1414 Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
1515 Description: package with public CPython modules
1616 example package #1
17
18 Package: python3-foo-ext
19 Architecture: any
20 Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
21 Description: package with public CPython extensions
22 example package #2
00 #!/usr/bin/make -f
11
22 export PYBUILD_NAME=foo
3 export PYBUILD_EXT_DESTDIR_python3=debian/python3-foo-ext
34
45 %:
56 dh $@
0 from setuptools import setup
0 from setuptools import setup, Extension
11
2 setup()
2 setup(ext_modules=[
3 Extension(
4 '_foo',
5 ['_foo.c'],
6 py_limited_api = True,
7 )
8 ])