Skip to content

Conversation

@boegel
Copy link
Member

@boegel boegel commented Dec 11, 2019

The fake vsc Python package that is put in place after vsc-base was ingested (see #2790) apparently gets tripped by pkgutil (part of Python standard library) in some situations (probably when a vsc-base is installed system-wide), see https://lists.ugent.be/wws/arc/easybuild/2019-12/msg00044.html.

There's no point in exiting with an error in that case, so let's ignore imports from vsc triggered by pkgutil.py...

Copy link
Member

@ocaisa ocaisa left a comment

Choose a reason for hiding this comment

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

Visually it looks fine to me, not sure how to test it though.

@boegel
Copy link
Member Author

boegel commented Dec 11, 2019

@ocaisa eb --hooks test.py where test.py has import vsc. That should still trigger the problem (unless you use pkgutil.py as filename).

The enhanced test covers it quite well though.

@ocaisa
Copy link
Member

ocaisa commented Dec 11, 2019

Ah sorry, I didn't see the test!

@ocaisa ocaisa merged commit 364590c into easybuilders:develop Dec 11, 2019
@boegel boegel deleted the ignore_import_vsc_pkgutil branch December 12, 2019 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants