Upgrade for 0.2 version of capnproto C++ library
This commit is contained in:
@@ -10,7 +10,7 @@ You can clone the repo like so:
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
First you need a system-wide installation of the Capnproto C++ library. All you need to do is follow the official [installation docs](http://kentonv.github.io/capnproto/install.html)].
|
First you need a system-wide installation of the Capnproto C++ library >= 0.2. All you need to do is follow the official [installation docs](http://kentonv.github.io/capnproto/install.html)].
|
||||||
Also on my ubuntu 12.10 box, I had to run `sudo ldconfig` after installation to make sure the libcapnp library was picked up by the linker.
|
Also on my ubuntu 12.10 box, I had to run `sudo ldconfig` after installation to make sure the libcapnp library was picked up by the linker.
|
||||||
|
|
||||||
You also need a working version of the latest [Cython](http://cython.org/) and the latest version of setuptools. This is easily done with:
|
You also need a working version of the latest [Cython](http://cython.org/) and the latest version of setuptools. This is easily done with:
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ def _load(module, node, loader, name):
|
|||||||
return local_module
|
return local_module
|
||||||
|
|
||||||
def load(file_name, cat_path='/bin/cat'):
|
def load(file_name, cat_path='/bin/cat'):
|
||||||
p = subprocess.Popen(['capnpc', '-o'+cat_path, file_name], stdout=subprocess.PIPE)
|
p = subprocess.Popen(['capnp', 'compile', '-o'+cat_path, file_name], stdout=subprocess.PIPE)
|
||||||
retcode = p.wait()
|
retcode = p.wait()
|
||||||
if retcode != 0:
|
if retcode != 0:
|
||||||
raise RuntimeError("capnpc failed for some reason. Make sure `capnpc` is in your path, and that the path to cat (%s) is correct" % cat_path)
|
raise RuntimeError("capnpc failed for some reason. Make sure `capnpc` is in your path, and that the path to cat (%s) is correct" % cat_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user