Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from ysimillides/master
Docker addition
- Loading branch information
Showing
23 changed files
with
414 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
julia 0.6 | ||
PyCall | ||
Conda | ||
PyPlot |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
using PyCall | ||
using Conda | ||
|
||
if PyCall.conda | ||
Conda.add_channel("conda-forge") | ||
Conda.add("fenics") | ||
else | ||
try | ||
pyimport("fenics") | ||
catch ee | ||
typeof(ee) <: PyCall.PyError || rethrow(ee) | ||
warn(""" | ||
Python Dependancies not installed | ||
Please either: | ||
- Rebuild PyCall to use Conda, by running in the julia REPL: | ||
- `ENV["PYTHON"]=""; Pkg.build("PyCall"); Pkg.build("FEniCS")` | ||
- Or install the depencences separately | ||
- Rebuild PyCall using the path to FEniCS using | ||
- `ENV["PYTHON"]="/path/to/FEniCS"; Pkg.build("PyCall"); Pkg.build("FEniCS")` | ||
- Or install the Dependancies using the Docker image provided | ||
""" | ||
) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.