@@ -49,16 +49,16 @@ def __init__(self, *args, **kwargs):
4949
5050 def install_step (self ):
5151 """Custom install procedure for ANSYS."""
52- licserv = self .cfg ['license_server' ]
53- if licserv is None :
54- licserv = os .getenv ('EB_ANSYS_LICENSE_SERVER' , 'license.example.com' )
55- licport = self .cfg ['license_server_port' ]
56- if licport is None :
57- licport = os .getenv ('EB_ANSYS_LICENSE_SERVER_PORT' , '2325:1055' )
58-
5952 # Sources (e.g. iso files) may drop the execute permissions
6053 adjust_permissions ('INSTALL' , stat .S_IXUSR )
61- cmd = "./INSTALL -silent -install_dir %s -licserverinfo %s:%s" % (self .installdir , licport , licserv )
54+ cmd = "./INSTALL -silent -install_dir %s" % self .installdir
55+ # E.g. license.example.com or license1.example.com,license2.example.com
56+ licserv = self .cfg .get ('license_server' , os .getenv ('EB_ANSYS_LICENSE_SERVER' ))
57+ # E.g. '2325:1055' or just ':' to use those defaults
58+ licport = self .cfg .get ('license_server_port' , os .getenv ('EB_ANSYS_LICENSE_SERVER_PORT' ))
59+ if licserv is not None and licport is not None :
60+ cmd += ' -licserverinfo %s:%s' % (licport , licserv )
61+
6262 run_cmd (cmd , log_all = True , simple = True )
6363
6464 adjust_permissions (self .installdir , stat .S_IWOTH , add = False )
0 commit comments