summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2015-02-09 14:33:38 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2015-02-09 14:33:38 +0100
commitea8853644e34ef3036912df77e8f1615e9251e87 (patch)
tree52854ac6e9241318c7d764e8d417edf58a31c2f8 /Makefile
parent39af7af7ca5438d7feac816b457b9ebe48747ddd (diff)
downloadpsutil-ea8853644e34ef3036912df77e8f1615e9251e87.tar.gz
fix #587: re-apply the relative import changes and use setup.py build_ext -i in order to fix the import error when using the interactive interpreter from within the root directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 542cc251..cb28b6fd 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ clean:
build: clean
$(PYTHON) setup.py build
+ @# copies *.so files in ./psutil directory in order to allow
+ @# "import psutil" when using the interactive interpreter from within
+ @# this directory .
+ $(PYTHON) setup.py build_ext -i
install: build
$(PYTHON) setup.py install --user; \
@@ -47,7 +51,7 @@ test-memleaks: install
# Run a specific test by name; e.g. "make test-by-name disk_" will run
# all test methods containing "disk_" in their name.
# Requires "pip install nose".
-test-by-name:
+test-by-name: install
@$(PYTHON) -m nose test/test_psutil.py --nocapture -v -m $(filter-out $@,$(MAKECMDGOALS))
# requires "pip install pep8"