Skip to content

Commit

Permalink
switch some ci run to default pythoncall backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 28, 2024
1 parent 350622c commit f91943e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci-judi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ jobs:
brew install llvm libomp
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Set julia python
run: |
echo "PYTHON=$(which python3)" >> $GITHUB_ENV
echo "PYCALL_JL_RUNTIME_PYTHON=$(which python3)" >> $GITHUB_ENV
echo "JULIA_PYTHONCALL_EXE=$(which python3)" >> $GITHUB_ENV
echo "JULIA_CONDAPKG_BACKEND=\"Null\"" >> $GITHUB_ENV
- name: Build JUDI
uses: julia-actions/julia-buildpkg@latest

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:

- name: Set julia python
run: |
PYTHON=$(which python3) julia -e 'using Pkg;Pkg.add("PyCall");Pkg.build("PyCall")'
echo "PYTHON=$(which python3)" >> $GITHUB_ENV
echo "PYCALL_JL_RUNTIME_PYTHON=$(which python3)" >> $GITHUB_ENV
echo "JULIA_PYTHONCALL_EXE=$(which python3)" >> $GITHUB_ENV
echo "JULIA_CONDAPKG_BACKEND=\"Null\"" >> $GITHUB_ENV
- name: Build JUDI
uses: julia-actions/julia-buildpkg@latest

Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ DSP = "0.6, 0.7"
Dierckx = "0.4, 0.5"
FFTW = "1"
Flux = "0.12, 0.13, 0.14"
JOLI = "0.7, 0.8"
JOLI = "0.9"
OrderedCollections = "1.5"
PythonCall = "0.9.23"
PythonCall = "0.9.21"
Requires = "1"
SegyIO = "0.7.7 - 0.8.5"
TimerOutputs = "0.5"
Expand Down
5 changes: 4 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ catch e
pyimport("pkg_resources")
end

################## JOLI ##################
run(Cmd(`$(pyexe) -m pip install -U --user --no-cache-dir PyWavelets`))

################## Devito ##################
# pip command
dvver = "4.8.10"
Expand All @@ -26,7 +29,7 @@ try
run(cmd)
end
catch e
@info "Devito not installed, installing with PyCall python"
@info "Devito not installed, installing with PythonCall python"
run(cmd)
end

Expand Down

0 comments on commit f91943e

Please sign in to comment.