File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ # build PyCall with the same interpreter as PythonCall
2
+ using PythonCall: PythonCall
3
+ using Pkg: Pkg
4
+ ENV [" PYTHON" ] = PythonCall. python_executable_path ()
5
+ @info " Building PyCall..." ENV [" PYTHON" ]
6
+ Pkg. build (" PyCall" )
7
+
1
8
using TestItemRunner
2
9
3
10
@run_package_tests
4
11
5
12
@testmodule PyCall begin
13
+ # build PyCall with the same interpreter as PythonCall
6
14
using PythonCall: PythonCall
7
- using Pkg: Pkg
8
- ENV [" PYTHON" ] = PythonCall. python_executable_path ()
9
- @info " Building PyCall..." ENV [" PYTHON" ]
10
- Pkg. build (" PyCall" )
15
+ if get (ENV , " PYTHON" , " " ) != PythonCall. python_executable_path ()
16
+ # ... but only if we didn't already do this
17
+ using Pkg: Pkg
18
+ ENV [" PYTHON" ] = PythonCall. python_executable_path ()
19
+ @info " Building PyCall..." ENV [" PYTHON" ]
20
+ Pkg. build (" PyCall" )
21
+ end
11
22
using PyCall
12
23
end
You can’t perform that action at this time.
0 commit comments