# get_help_info
#==============================================================
def get_help_info() :
- str = "\nSALOME Professional Installation Wizard\n\n"
+ str = "\nPAL/SALOME Installation Wizard\n\n"
str = str + "\tUsage : \n\tInstall [-g|b] [-f <xml-file>] [-t <target-dir>] [-tmp <tmp-dir>]\n"
str = str + "\n"
str = str + " -g Runs the Installation Wizard in the GUI mode.\n"
theDependencies = None,
theInstalldiskspace = None,
theTemporarydiskspace = None,
- theScript = None):
+ theScript = None,
+ thePickUpEnvironment = None):
self.name = theName
self.installdiskspace = theInstalldiskspace
self.temporarydiskspace = theTemporarydiskspace
self.script = theScript
+ self.pickupEnv = thePickUpEnvironment
#===================================================================
# class Config
attrs['temporarydiskspace'],
attrs['script'])
+ if attrs.has_key( 'pickupenv' ):
+ aProduct.pickupEnv = attrs['pickupenv']
+
self.products.append(aProduct)
def end_product(self):
def end_path(self):
pass
+ def getProduct(self, prod):
+ for product in self.products:
+ if product.name == prod:
+ return product
+ return None
+
#================================================================
# get the path using file name
#================================================================
env["LD_LIBRARY_PATH"] = ".:" + env["LD_LIBRARY_PATH"]
env["PATH"] = ".:"+ env["PATH"]
- sys.exit(os.system("cd " + cur_dir + "; ./bin/SALOMEPRO_InstallWizard " + xml_file +"&"))
+ sys.exit(os.system("cd " + cur_dir + "; ./bin/SALOME_InstallWizard " + xml_file +"&"))
#list_of_dep = get_dependencies_set(parser.products)
if check_disk_space(parser.products, scripts_dir, target_dir, tmp_dir) :
-
+
+ # install products
for product in parser.products :
if product.disable == "true": continue
res = os.system(cmd)
if res : break;
+ # pickup environment
+ for product in parser.products :
+
+ if product.disable == "true": continue
+
+ if product.pickupEnv == "true":
+ cmd = scripts_dir + product.script + " " + \
+ "pickup_env " + \
+ tmp_dir + " " + \
+ source_dir + "/" + subdir[product.install] + " " + \
+ target_dir + " " + \
+ '"' + list_of_dep + '"' + " " + \
+ product.name
+
+ res = os.system(cmd)
+
if len(root_path) and os.path.exists(root_path):
os.system("rm -r -f "+ root_path)