newline in executable= causes assert failure on exec
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Buildout |
New
|
Undecided
|
Unassigned |
Bug Description
Taking advantage of buildout's ability to transparently break attribute values across line causes newline characters to get stuck in them that later cause problems.
Example:
executable =
results in the string:
executable=
which causes use of this path in invoking setup.py within a recipe to fail:
An internal error occured 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 "/var/tmp/
) == 0
AssertionError
Solution:
Append a call to .strip() in two places in zc/recipe/
options[
This approach keeps any whitespace -within- the name, as might be desired in some cases.