|
1 | | - |
2 | 1 | ############################################################################## |
3 | 2 | # |
4 | 3 | # Copyright (c) 2003-2020 by The University of Queensland |
|
18 | 17 | # This is a template configuration file for escript on Debian/GNU Linux. |
19 | 18 | # Refer to README_FIRST for usage instructions. |
20 | 19 |
|
| 20 | +boost_libs=['boost_python311','boost_numpy311','boost_iostreams'] |
| 21 | +cxx_extra=' -fdiagnostics-color=always -std=c++17 -Wno-mismatched-new-delete' |
21 | 22 | escript_opts_version = 203 |
22 | | -#cxx_extra = '-Wno-literal-suffix' |
| 23 | +mumps=1 |
| 24 | +mumps_prefix=['/usr/include','/usr/lib/x86_64-linux-gnu/'] |
| 25 | +mumps_libs=['cmumps','dmumps','smumps','zmumps','mumps_common','pord'] |
| 26 | +netcdf=4 |
23 | 27 | openmp = True |
24 | | -#mpi = 'OPENMPI' |
25 | | - |
26 | | -import os |
27 | | - |
28 | | -d_mpi_path = '/usr/include/openmpi' |
29 | | -mpi_prefix = os.path.split(os.path.realpath(d_mpi_path))[0] |
30 | | -mpi_libs = ['mpi_cxx', 'mpi'] |
31 | | -netcdf = 4 |
32 | | -#umfpack = True |
33 | | -umfpack_prefix = ['/usr/include/suitesparse', '/usr/lib'] |
34 | | -umfpack_libs = ['umfpack', 'blas', 'amd'] |
35 | | -lapack_prefix = ['/usr/include/atlas', '/usr/lib/atlas-base'] |
36 | | -#silo = True |
37 | | -silo_libs = ['siloh5', 'hdf5_openmpi'] |
38 | | -dudley_assemble_flags = '-funroll-loops' |
39 | | - |
40 | | - |
41 | | -import subprocess |
42 | | -import os |
43 | | -p = subprocess.Popen(["ld","--verbose"], stdout=subprocess.PIPE) |
44 | | -out,err = p.communicate() |
45 | | -spath = [x[13:-3] for x in out.split() if 'SEARCH_DIR' in x] |
46 | | -p2name = '' |
47 | | -p3name = '' |
48 | | -for name in spath: |
49 | | - try: |
50 | | - l=os.listdir(name) |
51 | | - p2res=[x for x in l if (x.startswith('libboost_python-py2') or \ |
52 | | - x.startswith('libboost_python2')) and x.endswith('.so')] |
53 | | - p3res=[x for x in l if (x.startswith('libboost_python-py3') or \ |
54 | | - x.startswith('libboost_python3')) and x.endswith('.so')] |
55 | | - if len(p2name)==0 and len(p2res)>0: |
56 | | - p2name=p2res[-1] |
57 | | - if len(p3name)==0 and len(p3res)>0: |
58 | | - p3name=p3res[-1] |
59 | | - except OSError: |
60 | | - pass |
61 | | - |
62 | | -# boost-python library/libraries to link against |
63 | | -boost_libs = [p2name[3:-3]] |
64 | | - |
65 | | -# this can be used by options files importing us |
66 | | -boost_py2_libs = [p2name[3:-3]] |
67 | | -boost_py3_libs = [p3name[3:-3]] |
68 | | - |
69 | | -from site_init import getdebbuildflags |
70 | | -# Now we add the debian build flags |
71 | | -debstuff = getdebbuildflags() |
72 | | -if len(debstuff) > 0: |
73 | | - print("Building with the following additional flags from debian: "+str(debstuff)) |
74 | | -for i in debstuff: |
75 | | - k=i[0] |
76 | | - v=i[1] |
77 | | - try: |
78 | | - exec(k+"+=' "+v+"'") |
79 | | - except NameError: |
80 | | - exec(k+"='"+v+"'") |
81 | | - |
82 | | -mathjax_path='/usr/share/javascript/mathjax/MathJax.js' |
| 28 | +pythonlibname=['python3.11'] |
| 29 | +pythonincpath='/usr/include/python3.11/' |
| 30 | +umfpack=1 |
| 31 | +umfpack_prefix=['/usr/include/suitesparse/','/usr/lib'] |
| 32 | +silo=1 |
| 33 | +silo_prefix=['/usr/include','/usr/lib/x86_64-linux-gnu/'] |
| 34 | +silo_libs=['siloh5'] |
| 35 | +verbose=1 |
0 commit comments