如何在 tox 集成中使用 --use-features=in-tree-build 选项?
How to use --use-features=in-tree-build option in a tox integration?
我在 GitHub 操作中使用 tox
持续集成 (CI)。不使用 --use-features=in-tree-build
选项似乎有一个问题,我在执行 pip install .
时通常会 运行 有没有办法将这个 --use-features=in-tree-build
参数包含在CI 某处?
在CI里都是运行是tox -e py
然后在pyproject.toml
里没有配置选项[tox]
。
`
您可以通过 pyproject.toml
配置 tox
,参见 https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
您可以使用已经提到的 install_command
将附加选项传递给 pip
,请参阅 https://tox.readthedocs.io/en/latest/config.html#conf-install_command
我在 GitHub 操作中使用 tox
持续集成 (CI)。不使用 --use-features=in-tree-build
选项似乎有一个问题,我在执行 pip install .
时通常会 运行 有没有办法将这个 --use-features=in-tree-build
参数包含在CI 某处?
在CI里都是运行是tox -e py
然后在pyproject.toml
里没有配置选项[tox]
。
`
您可以通过 pyproject.toml
配置 tox
,参见 https://tox.readthedocs.io/en/latest/example/basic.html#pyproject-toml-tox-legacy-ini
您可以使用已经提到的 install_command
将附加选项传递给 pip
,请参阅 https://tox.readthedocs.io/en/latest/config.html#conf-install_command