diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-02-09 14:33:38 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-02-09 14:33:38 +0100 |
| commit | ea8853644e34ef3036912df77e8f1615e9251e87 (patch) | |
| tree | 52854ac6e9241318c7d764e8d417edf58a31c2f8 /Makefile | |
| parent | 39af7af7ca5438d7feac816b457b9ebe48747ddd (diff) | |
| download | psutil-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-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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" |
