Skip to content

Commit 5ca6ce5

Browse files
Merge pull request #934 from SciML/ChrisRackauckas-patch-2
test master
2 parents bcd71a0 + 856a97c commit 5ca6ce5

File tree

4 files changed

+8
-56
lines changed

4 files changed

+8
-56
lines changed

test/python/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
[deps]
22
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
33
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
4-
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
54
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
65
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
76

87
[compat]
98
DifferentialEquations = "7.11"
109
OrdinaryDiffEq = "6.33"
11-
PyCall = "1.96"
1210
PythonCall = "0.9.14"
1311
SciMLBase = "2"

test/python/pycall.jl

Lines changed: 0 additions & 46 deletions
This file was deleted.

test/python/pythoncall.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
# PyCall and PythonCall must use the same Python interpreter. This environment variable
2-
# tells PythonCall to use the same Python interpreter as PyCall. See
3-
# https://github.com/JuliaPy/PythonCall.jl/blob/5f56a9b96b867a9f6742ab1d1e2361abd844e19f/docs/src/pycall.md#tips
4-
ENV["JULIA_PYTHONCALL_EXE"] = "@PyCall"
5-
61
using DifferentialEquations, PythonCall
72

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__)
10+
811
@testset "Use of DifferentialEquations through PythonCall with user code written in Python" begin
912
pyexec("""
1013
from juliacall import Main

test/runtests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@ end
154154

155155
if !is_APPVEYOR && GROUP == "Python"
156156
activate_python_env()
157-
@time @safetestset "PyCall" begin
158-
include("python/pycall.jl")
159-
end
160157
@time @safetestset "PythonCall" begin
161158
include("python/pythoncall.jl")
162159
end

0 commit comments

Comments
 (0)