summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-01-02 07:30:31 +0000
committerGitHub <noreply@github.com>2019-01-02 07:30:31 +0000
commite9cdfedff3a3dd4b6d60187561d0538cdc2ac519 (patch)
tree06c9ee5f2e7b657a6a4136ea95399e8e564828d5
parentInstall the optional dependencies into the debian package (#4325) (diff)
downloadsynapse-e9cdfedff3a3dd4b6d60187561d0538cdc2ac519.tar.xz
Avoid packaging _trial_temp directory (#4326)
Make sure we don't put the _trial_temp directory in the package target
directory.

Fixes https://github.com/matrix-org/synapse/issues/4322
-rw-r--r--changelog.d/4326.bugfix2
-rwxr-xr-xdebian/build_virtualenv3
2 files changed, 3 insertions, 2 deletions
diff --git a/changelog.d/4326.bugfix b/changelog.d/4326.bugfix
new file mode 100644
index 0000000000..acce6266b8
--- /dev/null
+++ b/changelog.d/4326.bugfix
@@ -0,0 +1,2 @@
+Avoid packaging _trial_temp directory in -py3 debian packages
+
diff --git a/debian/build_virtualenv b/debian/build_virtualenv
index e9ef245476..83346c40f1 100755
--- a/debian/build_virtualenv
+++ b/debian/build_virtualenv
@@ -42,8 +42,7 @@ tmpdir=`mktemp -d`
 trap "rm -r $tmpdir" EXIT
 
 cp -r tests "$tmpdir"
-cd debian/matrix-synapse-py3
 
 PYTHONPATH="$tmpdir" \
-    ./opt/venvs/matrix-synapse/bin/python \
+    debian/matrix-synapse-py3/opt/venvs/matrix-synapse/bin/python \
         -B -m twisted.trial --reporter=text -j2 tests