fix debian build: avoid pip install in externally managed environment
This commit is contained in:
parent
ef4c87b280
commit
e181fd6f20
2 changed files with 13 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -9,6 +9,9 @@ help: ## Show this help message
|
||||||
install: ## Install deb-mock in development mode
|
install: ## Install deb-mock in development mode
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
|
debian-install: ## Install for Debian package build (no pip)
|
||||||
|
@echo "Debian package build - installation handled by debian/rules"
|
||||||
|
|
||||||
install-dev: ## Install deb-mock with development dependencies
|
install-dev: ## Install deb-mock with development dependencies
|
||||||
pip install -e .
|
pip install -e .
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
|
|
|
||||||
9
debian/rules
vendored
9
debian/rules
vendored
|
|
@ -12,6 +12,11 @@ override_dh_auto_install:
|
||||||
# Install documentation
|
# Install documentation
|
||||||
install -D -m 644 README.md debian/deb-mock/usr/share/doc/deb-mock/README.md
|
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 -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:
|
override_dh_python3:
|
||||||
dh_python3 --no-pycentral
|
dh_python3 --no-pycentral
|
||||||
|
|
@ -19,3 +24,7 @@ override_dh_python3:
|
||||||
override_dh_auto_test:
|
override_dh_auto_test:
|
||||||
# Skip tests during package build - they're run in CI/CD
|
# Skip tests during package build - they're run in CI/CD
|
||||||
@echo "Skipping tests during package build"
|
@echo "Skipping tests during package build"
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
# Use debian-install target instead of regular install
|
||||||
|
$(MAKE) debian-install
|
||||||
Loading…
Add table
Add a link
Reference in a new issue