|
59 | 59 | # Some python version don't like without --user so bypass it |
60 | 60 | ENV["PIP_BREAK_SYSTEM_PACKAGES"] = "1" |
61 | 61 | if dpro_repo != "" |
62 | | - # Devitopro is available (Licensed). Install devitopro that comes with devito |
63 | | - # as a submodule. THis way we install the devito version that is compatible with devitopro |
64 | | - # and we don't need to install devito separately |
| 62 | + # Devitopro is available (Licensed). Install devitopro that comes with devito as a submodule. |
| 63 | + # This way we install the devito version that is compatible with devitopro and we don't need to |
| 64 | + # install devito separately. |
65 | 65 | # Because devito is a submodule, pip fails to install it properly (pip does not clone with --recursive) |
66 | | - # So we need to clone then install it. And since julia somehow doesn't think submodules exists LibGit2 cannot clone |
67 | | - # the submodules. So we need to clone it with git by hand |
68 | | - dir = "$(tempname())-devitopro" |
| 66 | + # So we need to clone recursively, then install. And since julia somehow doesn't think submodules exists LibGit2 cannot clone |
| 67 | + # the submodules. So we need to clone it with git by hand. |
| 68 | + dir = abspath("$(tempname())-devitopro") |
69 | 69 | Sys.which("git") === nothing && error("git is not installed") |
70 | 70 | run(`git clone --recurse-submodules --depth 1 $(dpro_repo) $(dir)`) |
71 | 71 |
|
| 72 | + cd(dir) |
| 73 | + |
| 74 | + # Install devito[extras,tests] |
| 75 | + @info("Install devito[extras,tests]") |
| 76 | + pip("$(dir)/submodules/devito[extras,tests]") |
| 77 | + |
72 | 78 | # Install devitopro |
| 79 | + @info("Install devitopro[extras]") |
73 | 80 | pip(dir) |
74 | 81 |
|
75 | 82 | # Now all we need is mpi4py. It is straightforward to install except with the nvidia compiler that requires |
|
0 commit comments