diff --git a/test/python/Project.toml b/test/python/Project.toml index 1097d9828..459d7295e 100644 --- a/test/python/Project.toml +++ b/test/python/Project.toml @@ -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" diff --git a/test/python/pythoncall.jl b/test/python/pythoncall.jl index 27693dd01..8eb91d189 100644 --- a/test/python/pythoncall.jl +++ b/test/python/pythoncall.jl @@ -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("""