Skip to content

Commit 6c23dea

Browse files
Merge pull request #960 from SciML/python_tests
Fix Python tests
2 parents c6834ca + b50c5be commit 6c23dea

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

test/python/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[deps]
2+
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
23
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
34
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
45
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
56
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
67

78
[compat]
9+
CondaPkg = "0.2.26"
810
DifferentialEquations = "7.11"
911
OrdinaryDiffEq = "6.33"
1012
PythonCall = "0.9.14"

test/python/pythoncall.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
using DifferentialEquations, PythonCall
2-
3-
pyexec(
4-
""" # This is a mess because normal site-packages is not writeable in CI
5-
import subprocess, sys, site
6-
subprocess.run([sys.executable, '-m', 'pip', 'install', '--user', 'julia'])
7-
subprocess.run([sys.executable, '-m', 'pip', 'install', '--user', 'diffeqpy'])
8-
sys.path.append(site.getusersitepackages())
9-
""", @__MODULE__)
1+
using DifferentialEquations, PythonCall, CondaPkg
2+
3+
CondaPkg.add_pip("diffeqpy")
104

115
@testset "Use of DifferentialEquations through PythonCall with user code written in Python" begin
126
pyexec("""

0 commit comments

Comments
 (0)