diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b971b6148530d878bd4345cb0e78efe42525185..77e0be87522ae755c11e7b28466d6c8a608f3b34 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,4 @@
 build:
   image: python:latest
-  before_script:
-    - pip install numpy
   script:
-    - python setup.py build_ext
+    - python -m pip install .