Skip to content

Commit ff53464

Browse files
authored
Merge pull request #265 from chrisburr/fix-install-multiple
fix: Installing multiple modules in InstallDIRAC command
2 parents 9c7d387 + b0d20d0 commit ff53464

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/basic.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
timeout-minutes: 10
2222

2323
strategy:
24+
fail-fast: false
2425
matrix:
2526
python:
2627
- 2.7.18
@@ -51,6 +52,7 @@ jobs:
5152
timeout-minutes: 10
5253

5354
strategy:
55+
fail-fast: false
5456
matrix:
5557
python:
5658
- 2.7.18
@@ -62,8 +64,10 @@ jobs:
6264
- uses: actions/checkout@v3
6365
- name: Installing dependencies
6466
run: |
67+
echo 'deb http://archive.debian.org/debian stretch main' > /etc/apt/sources.list
68+
echo 'deb http://archive.debian.org/debian-security stretch/updates main' >> /etc/apt/sources.list
69+
apt-get update || true
6570
python -m pip install pytest mock
66-
apt-get update
6771
apt install -y voms-clients
6872
- name: Run pytest
6973
run: pytest
@@ -75,6 +79,7 @@ jobs:
7579
timeout-minutes: 10
7680

7781
strategy:
82+
fail-fast: false
7883
matrix:
7984
python:
8085
- 2.7.18

Pilot/pilotCommands.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,11 @@ def _localInstallDIRAC(self):
357357
self._saveEnvInFile()
358358

359359
# 7. pip install DIRAC[pilot]
360-
pipInstalling = "pip install %s " % self.pp.pipInstallOptions
360+
pipInstallingPrefix = "pip install %s " % self.pp.pipInstallOptions
361361

362362
if self.pp.modules: # install a non-released (on pypi) version
363363
for modules in self.pp.modules.split(","):
364+
pipInstalling = pipInstallingPrefix
364365
branch = project = ""
365366
elements = modules.split(":::")
366367
url = ""
@@ -385,9 +386,9 @@ def _localInstallDIRAC(self):
385386
else:
386387
# pip install DIRAC[pilot]==version ExtensionDIRAC[pilot]==version_ext
387388
if not self.releaseVersion or self.releaseVersion in ["master", "main", "integration"]:
388-
cmd = "%s %sDIRAC[pilot]" % (pipInstalling, self.pp.releaseProject)
389+
cmd = "%s %sDIRAC[pilot]" % (pipInstallingPrefix, self.pp.releaseProject)
389390
else:
390-
cmd = "%s %sDIRAC[pilot]==%s" % (pipInstalling, self.pp.releaseProject, self.releaseVersion)
391+
cmd = "%s %sDIRAC[pilot]==%s" % (pipInstallingPrefix, self.pp.releaseProject, self.releaseVersion)
391392
retCode, output = self.executeAndGetOutput(cmd, self.pp.installEnv)
392393
if retCode:
393394
self.log.error("Could not pip install %s [ERROR %d]" % (self.releaseVersion, retCode))

0 commit comments

Comments
 (0)