diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-20 03:49:07 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-20 03:49:07 +0200 |
| commit | 0d3e55a670887f865bb3c0ac9baaa86558f763e9 (patch) | |
| tree | d24548bd143dd57614eb4910ba9b2b741d329f95 /scripts | |
| parent | 5e74fa53becb51c17c21e2867b79d5403081faf0 (diff) | |
| download | psutil-0d3e55a670887f865bb3c0ac9baaa86558f763e9.tar.gz | |
import psutil right after make build to make sure compilation worked
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/winmake.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index 40ba3742..57546bd6 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -192,11 +192,16 @@ def help(): @cmd def build(): """Build / compile""" + # Make sure setuptools is installed (needed for 'develop' / + # edit mode). + sh("%s -c import setuptools" % PYTHON) sh("%s setup.py build" % PYTHON) - # copies compiled *.pyd files in ./psutil directory in order to + # Copies compiled *.pyd files in ./psutil directory in order to # allow "import psutil" when using the interactive interpreter # from within this directory. sh("%s setup.py build_ext -i" % PYTHON) + # Make sure it actually worked. + sh("%s -c 'import psutil'" % PYTHON) @cmd |
