跳转到主要内容

从源树内部加载PEP 517后端

项目描述

从源树内部加载PEP 517后端。

PEP 517中,包构建后端不是从正在构建的包的源中加载的。这防止了意外覆盖您的构建系统,但某些包,如构建工具,希望作为自己的后端运行。

intreehooks 是一个shim,可以解决这个问题,以便源树可以自行构建。要使用它,编写一个像这样的 pyproject.toml

[build-system]
requires = ["intreehooks"]  # + any other packages required to build
build-backend = "intreehooks:loader"

[tool.intreehooks]
build-backend = "flit.buildapi"  # Import path of your real backend

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分发

intreehooks-1.0.tar.gz (2.7 kB 查看哈希值)

上传时间:

构建分发

intreehooks-1.0-py2.py3-none-any.whl (3.7 kB 查看哈希值)

上传时间: Python 2 Python 3

由以下支持

AWSAWS 云计算和安全赞助商DatadogDatadog 监控FastlyFastly CDNGoogleGoogle 下载分析MicrosoftMicrosoft PSF赞助商PingdomPingdom 监控SentrySentry 错误日志StatusPageStatusPage 状态页面