2010-10-03から1日間の記事一覧

"cannot begin a template-argument list"対策

ubuntu上のswig-1.3.40でpythonモジュールをコンパイルしようとして遭遇。どういうエラーかというとswigで自動生成したc++ソースで std::vector<::meshio::la::Vector3,std::allocator< meshio::la::Vector3 > > こういうソースが生成されていて、" distutilsに介入して 文字列置換する swigの呼び出しは、setup.pyから自</::meshio::la::vector3,std::allocator<>…

easy_installの後継

http://pypi.python.org/pypi/distribute easy_installからforkしたらしく、python3にも対応している。 python2, python3両方共これでOK。