diff --git a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
index 0f393f3f40b096851766a286f2febae7fa5803a3..ac3a552df2d21fa15b4c651f5149102cf30cdc94 100644
--- a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
@@ -13,7 +13,7 @@ stages:
   - postcheck
 
 before_script:
-  - apk add --update bash coreutils tar wget python
+  - apk add --update bash coreutils tar wget
 
 .industrial_ci:
   stage: build
@@ -95,6 +95,8 @@ clang_format:
 ## other options like pylint, but much faster and less strict
 ##########################################################
 python_syntax:
+  before_script:
+    - apk add --update python2
   stage: precheck
   script: python -m compileall -q .
   when: always
diff --git a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
index 3209f46e04c30e081bc0f0e70162b9c4a759556c..2a5271acc66ee2c6619aaddc4594899cdfdd77ae 100644
--- a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
@@ -13,7 +13,7 @@ stages:
   - postcheck
 
 before_script:
-  - apk add --update bash coreutils tar wget python
+  - apk add --update bash coreutils tar wget
 
 .industrial_ci:
   stage: build
@@ -97,6 +97,8 @@ clang_format:
 ## other options like pylint, but much faster and less strict
 ##########################################################
 python_syntax:
+  before_script:
+    - apk add --update python2
   stage: precheck
   script: python -m compileall -q .
   when: always