Add package path to sys when downloading package as github archive
MEMBER
Sorry for the long diff, everything after the imports comes from `black` for code quality :/ 
2020-06-29T16:47:07Z
https://github.com/huggingface/datasets/pull/323#issuecomment-651237304
https://api.github.com/repos/huggingface/datasets/issues/323
MDEyOklzc3VlQ29tbWVudDY1MTIzNzMwNA==
https://api.github.com/repos/huggingface/datasets/issues/comments/651237304/reactions
2020-06-29T16:47:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/651237304
https://avatars.githubusercontent.com/u/10469459?v=4
https://api.github.com/users/yjernite/events{/privacy}
https://api.github.com/users/yjernite/followers
https://api.github.com/users/yjernite/following{/other_user}
https://api.github.com/users/yjernite/gists{/gist_id}
https://github.com/yjernite
yjernite
MDQ6VXNlcjEwNDY5NDU5
https://api.github.com/users/yjernite/orgs
https://api.github.com/users/yjernite/received_events
https://api.github.com/users/yjernite/repos
https://api.github.com/users/yjernite/starred{/owner}{/repo}
https://api.github.com/users/yjernite/subscriptions
User
https://api.github.com/users/yjernite
public
MEMBER
 I think it's fine and I can't think of another way to make the import work anyways.

Maybe we can have the `sys.path` behavior inside `prepare_module` instead ? Currently it seems to come out of nowhere in the code ^^'
We could check if external imports have a `__init__.py` and if it is the case then we can add to directory to the `PYTHONPATH`
2020-06-29T17:06:09Z
https://github.com/huggingface/datasets/pull/323#issuecomment-651246846
https://api.github.com/repos/huggingface/datasets/issues/323
MDEyOklzc3VlQ29tbWVudDY1MTI0Njg0Ng==
https://api.github.com/repos/huggingface/datasets/issues/comments/651246846/reactions
2020-06-29T17:06:09Z
https://api.github.com/repos/huggingface/datasets/issues/comments/651246846
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
This fixes the `coval.py` metric so that imports within the downloaded module work correctly. We can use a similar trick to add the BLEURT metric (@ankparikh)

@thomwolf not sure how you feel about adding to the `PYTHONPATH` from the script. This is the only way I could make it work with my understanding of `importlib` but there might be a more elegant method.

This PR fixes https://github.com/huggingface/nlp/issues/305