摘要: 安装wheel库 pip install wheel 制作whl文件非常简单 pip wheel --wheel-dir=./dist ./ python3 setup.py sdist bdist_wheel # 同时打包 --wheel-dir 指定生成.whl文件的存储位置,上面的命令,我是进 阅读全文
posted @ 2022-10-14 16:15 MasonLee 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 在这篇博文中,我将讨论如何开始使用Pipenv一个 Python 打包工具。这篇博文遵循 Ubuntu 工作流程,可以在 MacOS 和 Windows 中轻松复制。让我们开始吧。 什么是Pipenv? Pipenv 是 Python 的 Python 打包工具,是对使用Pip、Venv和 requ 阅读全文
posted @ 2022-10-14 13:56 MasonLee 阅读(147) 评论(0) 推荐(0) 编辑
摘要: pyo3 官方使用手册: 【点击查看】 maturin 构建使用工具: 【点击查看】 一、前言 安装 pip install maturin 主要有以下三个命令: maturin publish 将 crate 构建到 python 包中并将它们发布到 pypi。 maturin build构建轮子 阅读全文
posted @ 2022-10-14 10:46 MasonLee 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1,目录结构 2,代码清单 2.1,utils.h #ifndef __UTILS_H__ #define __UTILS_H__ #include <iostream> class Utils { private: public: static void print(std::string str 阅读全文
posted @ 2022-10-14 10:20 MasonLee 阅读(819) 评论(0) 推荐(0) 编辑