]> Frank Brehm's Git Trees - pixelpark/python-packaging.git/commitdiff
Updating gitlab/python-setup-template.yaml
authorFrank Brehm <frank@brehm-online.com>
Thu, 29 Dec 2022 09:11:39 +0000 (10:11 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 29 Dec 2022 09:11:39 +0000 (10:11 +0100)
gitlab/python-setup-template.yaml

index 44a4f53f126ec48c6fa654613b2997e0bb335953..0d1b0fc9eff42275c453e4b114ca0346aeaf5982 100644 (file)
     - locale-gen
     - locale -a
     - pip install --upgrade pip
-    - pip install -r requirements.txt --upgrade --upgrade-strategy eager
+    - >
+      if [[ -r requirements.txt ]] ; then
+          pip install -r requirements.txt --upgrade --upgrade-strategy eager
+      else
+          pip install --upgrade --upgrade-strategy eager
+      fi
 
 # vim: et tabstop=2 expandtab shiftwidth=2 softtabstop=2 list