Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/python/Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[deps]
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"

[compat]
CondaPkg = "0.2.26"
DifferentialEquations = "7.11"
OrdinaryDiffEq = "6.33"
PythonCall = "0.9.14"
Expand Down
12 changes: 3 additions & 9 deletions test/python/pythoncall.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
using DifferentialEquations, PythonCall

pyexec(
""" # This is a mess because normal site-packages is not writeable in CI
import subprocess, sys, site
subprocess.run([sys.executable, '-m', 'pip', 'install', '--user', 'julia'])
subprocess.run([sys.executable, '-m', 'pip', 'install', '--user', 'diffeqpy'])
sys.path.append(site.getusersitepackages())
""", @__MODULE__)
using DifferentialEquations, PythonCall, CondaPkg

CondaPkg.add_pip("diffeqpy")

@testset "Use of DifferentialEquations through PythonCall with user code written in Python" begin
pyexec("""
Expand Down
Loading