Lines Matching +full:petsc4py +full:- +full:install

30 …raise ValueError('The option "'+name+'" has a space character in the name - this is likely incorre…
37 raise ValueError('The option '+name+' should probably be '+name.replace('_', '-'));
43 if name.find(exc.replace('_','-')) > -1:
44 raise ValueError('The option '+opt+' should be '+opt.replace(exc.replace('_','-'),exc));
48 …if '--with-precision=single' in opts and '--with-clanguage=cxx' in opts and '--with-scalar-type=co…
49 …('PETSc does not support single precision complex with C++ clanguage, run with --with-clanguage=c')
52 # Document changes in command line options here. (matlab-engine is deprecated, no longer needed but…
53 optMap = [('with-64bit-indices','with-64-bit-indices'),
54 ('with-mpi-exec','with-mpiexec'),
55 ('c-blas-lapack','f2cblaslapack'),
58 ('matlabengine','matlab-engine'),
60 ('f-blas-lapack','fblaslapack'),
61 ('with-packages-dir','with-packages-download-dir'),
62 ('with-external-packages-dir','with-packages-build-dir'),
63 ('package-dirs','with-packages-search-path'),
64 ('download-petsc4py-python','with-python-exec'),
65 ('search-dirs','with-executables-search-path')]
67 optname = opt.split('=')[0].strip('-')
74 # If PETSC_ARCH not specified - use script name (if not configure.py)
82 # If not yet specified - use the filename of script
92 #Replace all 'enable-'/'disable-' with 'with-'=0/1/tail
93 #enable-fortran is a special case, the resulting --with-fortran is ambiguous.
94 #Would it mean --with-fc=
96 no_break_space = u'\N{NO-BREAK SPACE}'
100 …raise ValueError('Unicode NO-BREAK SPACE char found in arguments! Please rerun configure using reg…
101 name = name.replace(en_dash,'-')
103 …raise ValueError('Non-printable characters or control characters found in arguments! Please rerun …
104 if name.lstrip('-').startswith('enable-cxx'):
105 if name.find('=') == -1:
106 name = name.replace('enable-cxx','with-clanguage=C++',1)
110 name = head.replace('enable-cxx','with-clanguage=C',1)
112 name = head.replace('enable-cxx','with-clanguage=C++',1)
115 if name.lstrip('-').startswith('disable-cxx'):
116 if name.find('=') == -1:
117 name = name.replace('disable-cxx','with-clanguage=C',1)
121 name = head.replace('disable-cxx','with-clanguage=C++',1)
123 name = head.replace('disable-cxx','with-clanguage=C',1)
127 if name.lstrip('-').startswith('enable-'):
128 if name.find('=') == -1:
129 name = name.replace('enable-','with-',1)+'=1'
132 name = head.replace('enable-','with-',1)+'='+tail
133 if name.lstrip('-').startswith('disable-'):
134 if name.find('=') == -1:
135 name = name.replace('disable-','with-',1)+'=0'
139 name = head.replace('disable-','with-',1)+'='+tail
140 if name.lstrip('-').startswith('without-'):
141 if name.find('=') == -1:
142 name = name.replace('without-','with-',1)+'=0'
146 name = head.replace('without-','with-',1)+'='+tail
155 name = name.replace('download-petsc4py','with-petsc4py')
156 name = name.replace('download-slepc4py','with-slepc4py')
157 name = name.replace('with-openmpi','with-mpi')
158 name = name.replace('with-mpich','with-mpi')
159 name = name.replace('with-blas-lapack','with-blaslapack')
160 name = name.replace('with-cuda-gencodearch','with-cuda-arch')
161 name = name.replace('download-hdf5-fortran-bindings','with-hdf5-fortran-bindings')
163 if name.find('with-debug=') >= 0 or name.endswith('with-debug'):
164 if name.find('=') == -1:
165 name = name.replace('with-debug','with-debugging')+'=1'
168 name = head.replace('with-debug','with-debugging')+'='+tail
170 if name.find('with-shared=') >= 0 or name.endswith('with-shared'):
171 if name.find('=') == -1:
172 name = name.replace('with-shared','with-shared-libraries')+'=1'
175 name = head.replace('with-shared','with-shared-libraries')+'='+tail
177 if name.find('with-index-size=') >=0:
180 name = '--with-64-bit-indices=0'
182 name = '--with-64-bit-indices=1'
184 raise ValueError('--with-index-size= must be 32 or 64')
186 if name.find('with-precision=') >=0:
189 name='--with-precision=__float128'
194 elif name.find('with-'+i.lower()+'=') >= 0:
207 # cygwin - but not a hg clone - so check one of files in bin dir
211 print(' *** Please restart with a fresh tarball and use "tar -xzf petsc.tar.gz" ****')
218 if '--ignore-cygwin-link' in sys.argv: return 0
221 print(' *** To workaround do: "mv /usr/bin/link.exe /usr/bin/link-cygwin.exe" **')
222 …print(' *** Or to ignore this check, use configure option: --ignore-cygwin-link. But compiles can …
229 buf = os.popen('/usr/bin/cygcheck.exe -c cygwin').read()
230 if buf.find('1.5.11-1') > -1:
232 print(' *** cygwin-1.5.11-1 detected. ./configure fails with this version ***')
233 print(' *** Please upgrade to cygwin-1.5.12-1 or newer version. This can ***')
234 print(' *** be done by running cygwin-setup, selecting "next" all the way.***')
242 print(' *** Windows python detected. Please rerun ./configure with cygwin-python. ***')
251 r=re.compile("([0-9]+).([0-9]+).([0-9]+)")
257 sys.argv.append('--useThreads=0')
286 if os.path.exists('/etc/redhat-release'):
288 file = open('/etc/redhat-release','r')
292 # can't read file - assume dangerous RHL9
294 if buf.find('Shrike') > -1:
295 sys.argv.append('--useThreads=0')
316 newTmp = os.path.abspath('tmp-petsc')
334 print('* module load intel ; module load PrgEnv-intel')
335 print('* or module load PrgEnv-cray')
336 print('* or module load PrgEnv-gnu')
337 print('* See https://petsc.org/release/install/install/#installing-on-large-scale-doe-systems')
349 …'''Move configure.log to PETSC_ARCH/lib/petsc/conf - and update configure.log.bkp in both location…
360 # Just in case - confdir is not created
380 # If the old bkp is using the same PETSC_ARCH/lib/petsc/conf - then update bkp link
425 #rename '--enable-' to '--with-'
435 # Make sure cygwin-python is used on windows
445 if sys.argv[l].startswith('--with-fc=') and sys.argv[l].endswith('nagfor'):
448 … sys.argv[l] = '--with-fc='+os.path.join(os.path.abspath('.'),'lib','petsc','bin','petscnagfor')
457 …framework = config.framework.Framework(['--configModules=PETSc.Configure','--optionsModule=config.…
499 …ine_error_message('CONFIGURATION FAILURE (Please send configure.log to petsc-maint@mcs.anl.gov)', …
503 …iline_error_message('CONFIGURATION CRASH (Please send configure.log to petsc-maint@mcs.anl.gov)', …