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

Allow lazy evalution of some of the Extension's attributes #14

Merged
merged 5 commits into from Apr 3, 2017

Conversation

hroncok
Copy link
Member

@hroncok hroncok commented Mar 24, 2017

Related: #12

@hroncok hroncok changed the title WIP: Allow lazy evalution of some of the Extension's attributes Allow lazy evalution of some of the Extension's attributes Mar 24, 2017
@hroncok hroncok mentioned this pull request Mar 24, 2017
6 tasks
@hroncok hroncok force-pushed the lazy_extension branch 2 times, most recently from 1349e87 to 9c78477 Compare March 24, 2017 17:48
setup.py Outdated
def __init__(self, *args, **kwargs):
self._pkg = kwargs['pkg']
del kwargs['pkg']
if 'extra_libraries' in kwargs:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it isn't really necessary to delete 'extra_libraries' from kwargs, you can use just self._extra_libraries = kwargs.get('extra_libraries', []) instead of condition.

Copy link
Member Author

@hroncok hroncok Mar 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The later called Extension.__init__ warns for any unrecognized kwarg.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I see that you are using kwargs on line 29 so deleting extra_libraries is probably necessary and you can ignore my previous comment.

@frenzymadness frenzymadness self-assigned this Mar 30, 2017
@frenzymadness frenzymadness merged commit f4a537e into fedora-python:master Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants