cython:如何指定目录而不是 --inplace?

发布于 01-13 20:13 字数 200 浏览 3 评论 0原文

我想使用 cython 将 python 模块打包到 c 中。

它使用以下命令工作:

python setup.py build_ext --inplace

--inplace 选项在当前目录中创建共享对象文件。但是,我希望在指定的文件中创建共享对象文件。我该如何实现这个功能呢?

I want to package my python module to c using cython.

It work using the following command:

python setup.py build_ext --inplace

The --inplace option creates the shared object file in the current directory. However, I want the shared object files are created in a specified file. How can I implement this function?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文