Lines Matching +full:mswin +full:- +full:gnu

19 …help.addArgument('PETSc', '-PETSC_ARCH=<string>',     nargs.Arg(None, None, 'The configuration nam…
20 …help.addArgument('PETSc', '-with-petsc-arch=<string>',nargs.Arg(None, None, 'The configuration nam…
21 …help.addArgument('PETSc', '-force=<bool>', nargs.ArgBool(None, 0, 'Bypass configure has…
30 '''Forms the arch as GNU's configure would form it'''
32 arch = 'arch-' + sys.platform.replace('cygwin','mswin')
34 arch+= '-'+self.framework.argDB['with-clanguage'].lower().replace('+','x')
35 if self.framework.argDB['with-debugging']:
36 arch += '-debug'
38 arch += '-opt'
47 PETSC_ARCH from environment does not match command-line or name of script. Using from command-line …
49 if 'with-petsc-arch' in self.framework.argDB:
50 self.arch = self.framework.argDB['with-petsc-arch']
51 msg = 'option -with-petsc-arch='+str(self.arch)
62 if self.arch.startswith('-'):
63 raise RuntimeError('PETSC_ARCH should not start with "-", but you have specified with '+msg)
68 self.archBase = re.sub(r'^(\w+)[-_]?.*$', r'\1', self.arch)
89 ''' By default - checks if configure needs to be run'''
90 ''' If --arch-hash it manages the same information but it:'''
92 ''' * sets self.arch and PETSC_ARCH to arch-<hashvalue>'''
93 …''' This results in the downloaded packages being installed once to the arch-<hasvalue> dire…
96 ''' If --package-prefix-hash=directory is provided'''
128 if 'arch-hash' in self.argDB:
130 raise RuntimeError('Cannot provide --prefix and --arch-hash')
132 raise RuntimeError('Cannot provide PETSC_ARCH and --arch-hash')
133 if 'package-prefix-hash' in self.argDB:
134 raise RuntimeError('Cannot provide --arch-hash and --package-prefix-hash')
136 raise RuntimeError('Do not set the environmental variable PETSC_ARCH and use --arch-hash')
137 if 'arch-hash' in self.argDB or 'package-prefix-hash' in self.argDB:
140 m.update(hash.encode('utf-8'))
142 self.logPrint('Computed hash to be used with --package-prefix-hash option: '+hprefix)
143 if 'arch-hash' in self.argDB:
144 self.argDB['PETSC_ARCH'] = 'arch-'+hprefix[0:6]
145 self.arch = 'arch-'+hprefix[0:6]
147 if not os.path.isdir(self.argDB['package-prefix-hash']):
148 ….logPrint('Specified package-prefix-hash location %s not found! Attempting to create this dir!' % …
150 os.makedirs(self.argDB['package-prefix-hash'])
152 …self.logPrint('Error creating package-prefix-hash directory '+self.argDB['package-prefix-hash']+':…
153 …ror('You must have write permission to create prefix directory '+self.argDB['package-prefix-hash'])
156 hashdirpackages = os.path.join(self.argDB['package-prefix-hash'],hprefix[0:idx])
157 hashfilepackages = os.path.join(hashdirpackages,'configure-hash')
160 …self.argDB['package-prefix-hash'] = 'reuse' # indicates prefix libraries already built, no need to…
169 # since the previous hash associated with --package-prefix-hash
172 …raise RuntimeError('You cannot use --force with --package-prefix-hash=directory; you need to delet…
173 self.logPrint('Creating package-prefix-hash subdirectory '+hashdirpackages)
177 …se RuntimeError('You must have write permission on --package-prefix-hash='+self.argDB['package-pre…
181 …meError('Unable to create package-prefix-hash dir! Suggest cleaning up %s* !' % os.path.join(self.…
184 hashfile = os.path.join(self.arch,'lib','petsc','conf','configure-hash')
209 …hanged; no need to run configure\nHowever you can force a configure run using the option: --force')
214 banner_middle = '=' * (logger.get_global_divider_length() - 2 * len(banner_ends))
227 # required by top-level configure.py