Add cross-platform support for datasets-cli
CONTRIBUTOR
@mariosasko This is kinda cool! 
2021-02-28T16:03:55Z
https://github.com/huggingface/datasets/pull/1951#issuecomment-787474997
https://api.github.com/repos/huggingface/datasets/issues/1951
MDEyOklzc3VlQ29tbWVudDc4NzQ3NDk5Nw==
https://api.github.com/repos/huggingface/datasets/issues/comments/787474997/reactions
2021-02-28T16:03:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/787474997
https://avatars.githubusercontent.com/u/29076344?v=4
https://api.github.com/users/gchhablani/events{/privacy}
https://api.github.com/users/gchhablani/followers
https://api.github.com/users/gchhablani/following{/other_user}
https://api.github.com/users/gchhablani/gists{/gist_id}
https://github.com/gchhablani
gchhablani
MDQ6VXNlcjI5MDc2MzQ0
https://api.github.com/users/gchhablani/orgs
https://api.github.com/users/gchhablani/received_events
https://api.github.com/users/gchhablani/repos
https://api.github.com/users/gchhablani/starred{/owner}{/repo}
https://api.github.com/users/gchhablani/subscriptions
User
https://api.github.com/users/gchhablani
public
One thing I've noticed while going through the codebase is the usage of `scripts` in `setup.py`. This [answer](https://stackoverflow.com/a/28119736/14095927) on SO explains it nicely why it's better to use `entry_points` instead of `scripts`. To add cross-platform support to the CLI, this PR replaces `scripts` with `entry_points` in `setup.py` and moves datasets-cli to src/datasets/commands/datasets_cli.py. All *.md and *.rst files are updated accordingly. The same changes were made in the transformers repo to add cross-platform ([link to PR](https://github.com/huggingface/transformers/pull/4131)).