From b0691c65c50ba9025a017ddc8b0633c0705bc566 Mon Sep 17 00:00:00 2001 From: Kelym Date: Sun, 10 Feb 2019 18:56:58 -0800 Subject: [PATCH] update pybinding for conda-managed python --- python/.README.md.swp | Bin 0 -> 12288 bytes python/README.md | 26 +++++++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 python/.README.md.swp diff --git a/python/.README.md.swp b/python/.README.md.swp new file mode 100644 index 0000000000000000000000000000000000000000..4ff0b1ee4f07a6d6f65c56301de90e1223e0b6f8 GIT binary patch literal 12288 zcmeI2&2Jnv7{;A)0vbRRA&xHui6rWJ^HFG3l!!or2&idQ`k~N5#yjK9n9Piau_w_| z2@Xh{;KCgc96*922P%QMa7ZQkM-(B%fj6!T0XVH^W;v^!t+2N5I8V_+V(pq#@YPb?2PL(@zj%a z8H7Zn^r8;SvZ00)apv z5C{YUfj}S-2m}IwKp+qZ1OoRU0fFDypSYi~#~#4s@%#Vq|NkE!X6y&(W9TF3GPDRS zK%YOv*k{nE(6w>KcA=l4PoNK>ccFKn6nYDK16qfkf$oD2LDvs6_6xKN{RDjreGPpD zU4eF>7+QgrpckO44>I;W^d0mK^Z|4QQjmla=x^ll7xX9e2Xq6v4qbzGp)Vnq>s92u z3_XtbzvKEVbOSm9g;yXD2m}IwKp+qZ{O<^K=wd1h8t9r*u`MaDGpou>QhP#?WU;L( zUF5Q`NAbbb|G7gY$)>_mw3Dhh^>HH-MS}aIakgb;lx`R!ZE-e_TpI@GMn|+ME%~M}NEMVw zqbj`3bSy0L#XxRy`vS9Ol+N3%b(C}JEHACTwz_=!%=*Te^>eSBUfZ~^a`yGr(`yU! zIG-CQ)T>pNG||{RrW3^4!h$h`sUD__!+qQ2TPH}qC z4c648Pw(d1?5V;-Y;x0e6-(m0i$5Iil^HkE)+O%=lj0b$-2#^;us5d3VQw@=a{#y* z%CwQ1B5)C?uQKTg?zvkI-1xJz>}kJtS|;mQu_o0urriUV9+oT$%K1&vuuJ4D!qTpM zPsHxf%P1{Th*%eiIEl8Z99l{pq!n@B#tZ;2M|l)t6Arhvg%10?jh=5!_ZAb}Yu<9c zXJfvVsLERkZ-*0Po61t0=|WO!ZD~$+ySS6qJs#^EhooKR{xUnu@udnc6MVO-L>3*eiYUxi;yNb&64ps>~SB5UR3aIMXmGfTE;V>L^n82|_$A&B2l|?rf z09AEizrwxL=Gg>hU#bitJ80Um(%4Qcj5MgU$u$X@!|iTyf#&!epP7O+Y_;F)!?nSt z(8Bk{IKtm%jTA%pn3iril!+H1RR#rXx2#acvJBHI|U0I;byQyVf*tb zHoFIH)+#|MxG$of#MhD|hcNE6{RCRW9l!ihy>4R0&7>9?`6b$JoWm`PYU5lTS;zhX Dq4}~q literal 0 HcmV?d00001 diff --git a/python/README.md b/python/README.md index dba5cf63f7..32d89abd36 100644 --- a/python/README.md +++ b/python/README.md @@ -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 @@ -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. @@ -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 ```