diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-06-17 21:24:22 -0700 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-06-17 21:24:22 -0700 |
commit | 069b8f2ee39708f7dc43e70efa33617b106a5f2d (patch) | |
tree | e7836dfb7da372baae7a7e0c0563c127a5ba83d2 | |
parent | 34b41805a9060a16824fa2eb9beb91105e117aee (diff) | |
download | psutil-069b8f2ee39708f7dc43e70efa33617b106a5f2d.tar.gz |
make.bat flake8
-rw-r--r-- | make.bat | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -48,6 +48,7 @@ if "%1" == "help" ( echo build compile without installing echo build-all build exes + wheels echo clean clean build files + echo flake8 run flake8 echo install compile and install echo setup-env install pip, unittest2, wheels for all python versions echo test run tests @@ -160,12 +161,12 @@ if "%1" == "upload-all" ( goto :eof ) - if "%1" == "setup-env" ( + :setup-env @echo ------------------------------------------------ @echo downloading pip installer @echo ------------------------------------------------ - C:\python27\python.exe -c "import urllib2; url = urllib2.urlopen('https://raw.github.com/pypa/pip/master/contrib/get-pip.py'); data = url.read(); f = open('get-pip.py', 'w'); f.write(data)" + C:\python27\python.exe -c "import urllib2; r = urllib2.urlopen('https://raw.github.com/pypa/pip/master/contrib/get-pip.py'); open('get-pip.py', 'wb').write(r.read())" for %%P in (%ALL_PYTHONS%) do ( @echo ------------------------------------------------ @echo installing pip for %%P @@ -174,13 +175,22 @@ if "%1" == "setup-env" ( ) for %%P in (%ALL_PYTHONS%) do ( @echo ------------------------------------------------ - @echo building deps for %%P + @echo installing deps for %%P @echo ------------------------------------------------ - %%P -m pip install unittest2 wheel ipaddress wmi --upgrade + rem mandatory / for unittests + %%P -m pip install unittest2 ipaddress mock wmi wheel --upgrade + rem nice to have + %%P -m pip install ipdb pep8 pyflakes flake8 --upgrade ) goto :eof ) +if "%1" == "flake8" ( + :flake8 + %PYTHON% -c "from flake8.main import main; main()" + goto :eof +) + goto :help :error |