This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -100,3 +100,18 @@ esac
100100# add a dependency on the right version of python to substvars.
101101PYPKG=` basename $SNAKE `
102102echo " synapse:pydepends=$PYPKG " >> debian/matrix-synapse-py3.substvars
103+
104+
105+ # add a couple of triggers. This is needed so that dh-virtualenv can rebuild
106+ # the venv when the system python changes (see
107+ # https://dh-virtualenv.readthedocs.io/en/latest/tutorial.html#step-2-set-up-packaging-for-your-project)
108+ #
109+ # we do it here rather than the more conventional way of just adding it to
110+ # debian/matrix-synapse-py3.triggers, because we need to add a trigger on the
111+ # right version of python.
112+ cat >> " debian/.debhelper/generated/matrix-synapse-py3/triggers" << EOF
113+ # triggers for dh-virtualenv
114+ interest-noawait $SNAKE
115+ interest dh-virtualenv-interpreter-update
116+
117+ EOF
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ matrix-synapse-py3 (1.40.0~rc1) stable; urgency=medium
22
33 [ Richard van der Hoff ]
44 * Drop backwards-compatibility code that was required to support Ubuntu Xenial.
5+ * Update package triggers so that the virtualenv is correctly rebuilt
6+ when the system python is rebuilt, on recent Python versions.
57
68 [ Synapse Packaging team ]
79 * New synapse release 1.40.0~rc1.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments