簡體   English   中英

Buildout是否支持extends選項中的值替換?

[英]Does Buildout support value substitution in the extends option?

Buildout是否支持buildout部分的extends選項中的值替換

例如,此example.cfg不使用base.cfg擴展:

[config]
base = base.cfg

[buildout]
extends =
    ${config:base}
parts =

buildout -c example.cfg annotate

我的目標是從外部發送文件到擴展作為參數 ,如下所示:

buildout config:base=base.cfg -c example.cfg annotate

我試圖合並 buildout:extendsbuildout:extends ; 但這也不起作用:

buildout buildout:extends+=base.cfg -c example.cfg annotate

不,不幸的是, extends不支持值替換。 當前實現在變量替換發生之前處理buildout.extends

現有功能請求為此打開: #39 擴展中沒有可變替換

我通常首先創建一個local.cfg文件,可能來自模板,然后運行buildout -c local.cfg 這就是我自定義擴展配置的地方。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM