Skip to content

Commit

Permalink
Small fixes/tweaks [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Oct 26, 2018
1 parent be5cc4a commit dbfb24e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ julia> using Pkg # for julia ≥ 0.7
julia> Pkg.add("PyCall")
```

Your python installation must be able to call Julia. If your installer
does not add the Julia binary directory to your `PATH`, you will have to
add it. _An alias will not work._
Your python installation must be able to call command line program
`julia`. If your installer does not add the Julia binary directory to
your `PATH`, you will have to add it. _An alias will not work._

Then finally you have to install PyJulia.

Expand All @@ -51,7 +51,7 @@ install PyJulia directly from GitHub:
$ python3 -m pip install --user 'https://github.com/JuliaPy/pyjulia/archive/master.zip#egg=julia'
```

You may clone it directly to your home directory.
You may clone it directly to (say) your home directory.

```console
$ git clone https://github.com/JuliaPy/pyjulia
Expand Down Expand Up @@ -97,7 +97,7 @@ Other variants of Python import syntax also work:

```pycon
>>> import julia.Base
>>> from julia.Base import LinAlg # import a submodule
>>> from julia.Base import Enums # import a submodule
>>> from julia.Base import sin # import a function from a module
```

Expand Down Expand Up @@ -293,7 +293,7 @@ example, the Julia method `sum!` can be called in PyJulia using
There was a major overhaul in the module loading system between Julia
0.6 and 1.0. As a result,
[the hack](https://github.com/JuliaPy/pyjulia/tree/master/julia/fake-julia)
supporting the PyJulia to load PyCall.
supporting the PyJulia to load PyCall stopped working.

To understand the issue, you need to understand a bit of details in
PyCall implementation. PyCall uses Julia's precompilation mechanism
Expand All @@ -304,8 +304,8 @@ layout varies across Python versions. Currently, this is determined
while precompiling PyJulia and cannot be changed at run-time.
Consequently, PyCall only works if it loads the same libpython in
Julia and Python. This is why PyJulia has to be imported in a Python
executable dynamically linked to libpython when using the same PyCall
precompilation cache.
executable dynamically linked to libpython, if it shares the same
PyCall precompilation cache.

The aforementioned hack worked by monkey-patching Julia's
precompilation mechanism to emit the precompilation cache file to
Expand Down

0 comments on commit dbfb24e

Please sign in to comment.