Skip to content

Commit

Permalink
I meant python3-dev... sigh. make deb works now.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilion committed Aug 26, 2018
1 parent be2587d commit d7a42e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Vcs-Git: git://github.com/kamilion/customizer
Vcs-browser: https://github.com/kamilion/customizer
Standards-Version: 4.2.0
X-Python-Version: >= 3.3
Build-Depends: debhelper (>= 9~), g++, python-dev (>= 3.3~), pyqt5-dev-tools,
Build-Depends: debhelper (>= 9~), g++, python3-dev (>= 3.3~), pyqt5-dev-tools,
qttools5-dev-tools

Package: customizer
Expand Down
7 changes: 7 additions & 0 deletions debian/customizer.postinst.debhelper
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# Automatically added by dh_python3:
if which py3compile >/dev/null 2>&1; then
py3compile -p customizer /usr/share/customizer
fi

# End automatically added section
10 changes: 10 additions & 0 deletions debian/customizer.prerm.debhelper
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# Automatically added by dh_python3:
if which py3clean >/dev/null 2>&1; then
py3clean -p customizer
else
dpkg -L customizer | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)'
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir
fi

# End automatically added section

0 comments on commit d7a42e1

Please sign in to comment.