Skip to content

Commit

Permalink
Try to migrate to Poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
vulpine committed Aug 12, 2024
1 parent 1914c1b commit 84f5bfe
Show file tree
Hide file tree
Showing 7 changed files with 693 additions and 53 deletions.
10 changes: 5 additions & 5 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

export DH_OPTIONS

ifeq ($(shell (. /etc/lsb-release && dpkg --compare-versions $$DISTRIB_RELEASE ge "22.04" && echo yes || echo no)),yes)
python3_depends = python3.7, python3.7-distutils
python3_runtime = python3.7
else
ifeq ($(shell (. /etc/lsb-release && dpkg --compare-versions $$DISTRIB_RELEASE ge "24.04" && echo yes || echo no)),yes)
python3_depends = python3.8, python3.8-distutils
python3_runtime = python3.8
else ifeq ($(shell (. /etc/lsb-release && dpkg --compare-versions $$DISTRIB_RELEASE ge "22.04" && echo yes || echo no)),yes)
python3_depends = python3.7
python3_runtime = python3.7
endif
Expand All @@ -18,7 +18,7 @@ override_dh_gencontrol:
dh_gencontrol -- -VpythonRuntime:Depends="$(python3_depends)"

override_dh_virtualenv:
dh_virtualenv --python $(python3_runtime) --extra-pip-arg --only-binary=:all:
dh_virtualenv --python $(python3_runtime) --preinstall=-rrequirements-bootstrap.txt --extra-pip-arg --only-binary=:all:

# do not call `make clean` as part of packaging
override_dh_auto_clean:
Expand Down
Loading

0 comments on commit 84f5bfe

Please sign in to comment.