diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7bb7dc47203feb95b9d5cae4f8e7885a3f97b5d8..94377a9a6161080d903dabb1ada5fd6cc5f5a5ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -108,7 +108,7 @@ pypi:
     stage: release
     cache: {}
     script:
-        - pip install -U twine wheel
+        - pip install -U twine wheel setuptools_scm
         - python setup.py sdist
         - python setup.py bdist_wheel
         - twine upload dist/*