diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 07918c082923b73b415614b991967fc9d22e5a63..6e6d78fcfec18d88bca300ae61b51a4603bb8bef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ cache:
 
 before_script:
   - python -V  # Print out python version for debugging
-  - pip install pep517
+  - pip install build
 
 stages:
   - build
@@ -24,7 +24,7 @@ stages:
 build:
   stage: build
   script:
-    - python -m pep517.build .
+    - python -m build
   artifacts:
     paths:
       - dist/*