zc.recipe.egg:custom traps on environment variables with embedded % signs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
New
|
Undecided
|
Unassigned |
Bug Description
On my machine (OpenSuse-12.3) the system sets up two environment variables
"LESSOPEN=
"LESSCLOSE=
I have a buildout.cfg like follows:
[buildout]
parts = pytrs
[pytrs-env]
recipe = collective.
[pytrs]
recipe = zc.recipe.
environment = pytrs-env
egg = haufe.pytrs
When run with bin/buildout install egg it generates the following backtrace:
(gotti@manta 1232) bin/buildout install pytrs
Installing pytrs.
While:
Installing pytrs.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/
getattr(
File "/home/
installed_files = self[part]
File "/home/
return f()
File "/home/
self.
File "/home/
os.environ[key] = value % os.environ
TypeError: not enough arguments for format string
(gotti@manta 1233)
I think this should not kill the buildout but should instead print a warning an continue without further trying to interpolate anything on that specific value.