Skip to content

Commit eb10f65

Browse files
author
Christopher Doris
committed
make juliacall a bit simpler to install
1 parent 3d2548d commit eb10f65

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

docs/src/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@
55
* Julia 1.0 or higher.
66
* Python 3.5 or higher.
77

8-
## Install the Julia package
8+
## Install the Julia package `PythonCall`
99

1010
```julia
1111
using Pkg
1212
pkg"add PythonCall"
1313
```
1414

15-
## Install the Python package (optional)
15+
## Install the Python package `juliacall` (optional)
1616

1717
This step is only required if you wish to call Julia from Python.
1818

19-
Currently the Python package `juliacall` is shipped with the source of the Julia package, and must be
19+
Currently `juliacall` is shipped with the source of the Julia package, and must be
2020
pip-installed manually. The following should work in most shells (including PowerShell):
2121

2222
```bash
23-
pip install --upgrade $(julia -e "using PythonCall; print(dirname(dirname(pathof(PythonCall))))")
23+
pip install $(julia -e "using PythonCall; print(PythonCall.juliacall_pipdir)")
2424
```
2525

26-
The package has no dependencies, so you can also just copy it to somewhere in your PYTHONPATH.
26+
Alternatively you can just copy the package (at `PythonCall.juliacall_dir`) to somewhere in your PYTHONPATH.
2727

2828
Note that this is a [very small](https://github.com/cjdoris/PythonCall.jl/blob/master/juliacall/__init__.py)
2929
"bootstrap" package whose sole job is to locate and load Julia; the main functionality is in
File renamed without changes.

src/PythonCall.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,7 @@ include("ipython.jl")
127127

128128
include("init.jl")
129129

130+
const juliacall_pipdir = dirname(@__DIR__)
131+
const juliacall_dir = joinpath(juliacall_pipdir, "juliacall")
132+
130133
end # module

0 commit comments

Comments
 (0)