Parse the command line and check the arguments before build_deps() (#16914)
authorSimeon Monov <sdmonov@us.ibm.com>
Tue, 12 Feb 2019 08:12:03 +0000 (00:12 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 12 Feb 2019 08:15:42 +0000 (00:15 -0800)
commitbad4442a7cefebd1fae825f86b6b9667aa321896
treeb496be2d3d4286bfc60e5779bcca869cbd33aa08
parent4d4c5273deef4b4fa00ef4411a6b32f494c411f0
Parse the command line and check the arguments before build_deps() (#16914)

Summary:
This is needed to check for wrong arguments or --help options
before `build_deps()` is executed. Otherwise command line arguments
are not parsed and checked until `setup()` is run.

Fixes: #16707
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16914

Differential Revision: D14041236

Pulled By: soumith

fbshipit-source-id: 41f635772ccf47f05114775d5a19ae04c495ab3b
.jenkins/pytorch/build.sh
.jenkins/pytorch/common.sh
.jenkins/pytorch/test.sh
setup.py