diff --git a/bin/start-ds.sh b/bin/start-ds.sh
index a64022016c85c3043ec4da50fc010aead462cf59..e7fab7e9331b4512f9caf13bb9096146605fd4d9 100755
--- a/bin/start-ds.sh
+++ b/bin/start-ds.sh
@@ -22,9 +22,10 @@ if [[ $TANGOSTATIONCONTROL ]]; then
 else
   # Install the package, exit 1 if it fails
   cd tangostationcontrol || exit 1
-  python3 setup.py build --build-base /tmp/ egg_info --egg-base /tmp/ bdist_wheel --dist-dir /tmp/ || exit 1
+  mkdir -p /tmp/tangostationcontrol
+  python3 setup.py build --build-base /tmp/tangostationcontrol egg_info --egg-base /tmp/tangostationcontrol bdist_wheel --dist-dir /tmp/tangostationcontrol || exit 1
   # shellcheck disable=SC2012
-  sudo pip install "$(ls -Art /tmp/*.whl | tail -n 1)"
+  sudo pip install "$(ls -Art /tmp/tangostationcontrol/*.whl | tail -n 1)"
 fi
 
 /usr/local/bin/wait-for-it.sh "$TANGO_HOST" --timeout=30 --strict -- "$@"