Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nestly.scons.name_targets could be improved with func_name #19

Open
metasoarous opened this issue Oct 4, 2013 · 1 comment
Open

nestly.scons.name_targets could be improved with func_name #19

metasoarous opened this issue Oct 4, 2013 · 1 comment
Labels

Comments

@metasoarous
Copy link
Member

From the docs:

name_targets() does not preserve the name of the decorated function, so the name of the target must be provided as a parameter to add_target().

This can be avoided by assigning wrap.func_name = func.func_name in the name_targets source.

@cmccoy
Copy link
Member

cmccoy commented Oct 7, 2013

Sure. (might try functools.wraps

On Fri, Oct 4, 2013 at 2:40 PM, Christopher Small
notifications@github.comwrote:

From the docs:

name_targets() does not preserve the name of the decorated function, so
the name of the target must be provided as a parameter to add_target().

This can be avoided by assigning wrap.func_name = func.func_name in the
name_targets source.


Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.

Connor McCoy
Fred Hutchinson Cancer Research Center
1100 Fairview Ave N.
Seattle, WA 98109-1924
cmccoy@fhcrc.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants