Skip to content

Commit

Permalink
update pybinding for conda-managed python
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelym committed Feb 11, 2019
1 parent bfea100 commit b0691c6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
Binary file added python/.README.md.swp
Binary file not shown.
26 changes: 19 additions & 7 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# This folder contains manual bindings for aikidopy using pybind11.

0. The installation guide have been tested on sudo apt installed python 2.7 and python 3.4. Ensure you have `python2.7-dev` or `python3-dev` correspondingly, or:
```
sudo apt-get install python3-dev
```
0. The installation guide have been tested on

- sudo apt installed python 2.7 and python 3.4.
- anaconda managed python 3.6

1. Install [pybind11](https://github.com/pybind/pybind11.git) **from source** following this [instruction](https://pybind11.readthedocs.io/en/master/basics.html#compiling-the-test-cases), version >=2.2.0.
If you use system installed python, ensure you have `python2.7-dev` or `python3-dev` correspondingly, or run `sudo apt-get install python3-dev` to obtain it.


1. Install [pybind11](https://github.com/pybind/pybind11.git) **from source** following this [instruction](https://pybind11.readthedocs.io/en/master/basics.html#compiling-the-test-cases). (Need version >= 2.2.0).

```
git clone https://github.com/pybind/pybind11.git
Expand All @@ -14,7 +17,16 @@ mkdir build
cd build
cmake ..
make -j 4
sudo make install
```

- For system managed python: `sudo make install`;
- For anaconda: `pip install -e .`.

You should be able to load `pybind11` in your python.

```
$ python
>> import pybind11
```

2. Build aikido and source the setup file.
Expand All @@ -36,7 +48,7 @@ Read the output of `sudo make install` and ensure that `aikidopy.so` get install

4. Try loading.
```
python3
python
>>> import aikidopy
```

Expand Down

0 comments on commit b0691c6

Please sign in to comment.