simplify debian packaging: let dh-python handle installation properly
This commit is contained in:
parent
e181fd6f20
commit
25b26a4d2f
2 changed files with 7 additions and 18 deletions
18
debian/rules
vendored
18
debian/rules
vendored
|
|
@ -1,5 +1,9 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# dh_python3 will install the python modules
|
||||
# and handle byte-compilation
|
||||
export PYBUILD_NAME=deb-mock
|
||||
|
||||
%:
|
||||
dh $@ --with python3
|
||||
|
||||
|
|
@ -12,19 +16,7 @@ override_dh_auto_install:
|
|||
# Install documentation
|
||||
install -D -m 644 README.md debian/deb-mock/usr/share/doc/deb-mock/README.md
|
||||
install -D -m 644 docs/*.md debian/deb-mock/usr/share/doc/deb-mock/ 2>/dev/null || true
|
||||
# Install Python modules
|
||||
mkdir -p debian/deb-mock/usr/lib/python3/dist-packages/deb_mock
|
||||
cp -r deb_mock/*.py debian/deb-mock/usr/lib/python3/dist-packages/deb_mock/
|
||||
# Create __init__.py if it doesn't exist
|
||||
touch debian/deb-mock/usr/lib/python3/dist-packages/deb_mock/__init__.py
|
||||
|
||||
override_dh_python3:
|
||||
dh_python3 --no-pycentral
|
||||
|
||||
override_dh_auto_test:
|
||||
# Skip tests during package build - they're run in CI/CD
|
||||
@echo "Skipping tests during package build"
|
||||
|
||||
override_dh_auto_build:
|
||||
# Use debian-install target instead of regular install
|
||||
$(MAKE) debian-install
|
||||
@echo "Skipping tests during package build"
|
||||
Loading…
Add table
Add a link
Reference in a new issue