Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Sep 1, 2016
1 parent 7c10c33 commit 3d04492
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
19 changes: 5 additions & 14 deletions doc/examples/subset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@
},
"outputs": [],
"source": [
"%%time\n",
"wrappers.write()"
]
},
Expand All @@ -465,24 +466,14 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [
{
"data": {
"text/plain": [
"/home/main/AutoWIG/doc/examples/PyClangLite/src/py/wrapper_a6aedb4654a55a40aeecf4b1dc5fcc98.cpp"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"asg['class ::clang::Decl'].boost_python_export"
"%%bash\n",
"pygmentize PyClangLite/src/py/wrapper_a6aedb4654a55a40aeecf4b1dc5fcc98.cpp"
]
},
{
Expand Down
5 changes: 2 additions & 3 deletions doc/examples/template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
},
"outputs": [],
"source": [
"from path import path\n",
"srcdir = path('PySTL')/'src'/'py'\n",
"for wrapper in srcdir.walkfiles('*.cpp'):\n",
" wrapper.unlink()\n",
Expand Down Expand Up @@ -178,12 +179,10 @@
},
"outputs": [],
"source": [
"from path import path\n",
"import sys\n",
"prefix = path(sys.prefix)\n",
"autowig.parser.plugin = 'pyclanglite'\n",
"asg = autowig.parser(asg,\n",
" [prefix/'include'/'pystl'/'vector.h'],\n",
" [sys.prefix + '/include/pystl/vector.h'],\n",
" flags = ['-x', 'c++', '-std=c++11',\n",
" '-I' + str((prefix/'include').abspath())],\n",
" bootstrap = 1,\n",
Expand Down

0 comments on commit 3d04492

Please sign in to comment.