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

move 'declare_namespace' statement last #1666

Merged
merged 1 commit into from Mar 11, 2016

Conversation

boegel
Copy link
Member

@boegel boegel commented Mar 11, 2016

I saw a weird issue pop up that is hard to reproduce, where l was not defined anymore when it was being deleted.

I think this is because the delclare_namespace was triggering the del in another __init__.py, but in the same scope...
This issue is not uncovered by the tests because it may only occur with an EasyBuild installation that was performed with easy_install...

This trivial change makes sure that the del happens before calling out to declare_namespace, avoiding the issue all together.

Same change was made in easyblocks companion PR to #1593, i.e. easybuilders/easybuild-easyblocks#827

@hpcugentbot
Copy link
Contributor

EasyBuild framework unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/2860/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

boegel added a commit that referenced this pull request Mar 11, 2016
move 'declare_namespace' statement last
@boegel boegel merged commit 129eef4 into easybuilders:develop Mar 11, 2016
@boegel boegel deleted the del_vs_declare_namespace branch March 11, 2016 20:57
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