Skip to content

Commit 9de8425

Browse files
committed
fix: Installing multiple modules in InstallDIRAC command
1 parent 9c7d387 commit 9de8425

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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)