diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 902b4c9f6760149298c038959b43bafa036916ec..07735bb157f46e7ae473868b80f9d7da4ad8c37e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -134,6 +134,7 @@ pypi:
     cache: {}
     script:
         - pip install -U twine setuptools setuptools_scm
+        - pip install .
         - python setup.py sdist
         - twine upload dist/*
     only: