diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-15 17:39:28 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-02-15 17:39:28 +0100 |
| commit | 00a85b6f7ac61dcd6a44df06a377c5dcfb53c725 (patch) | |
| tree | 1179cd3e574630b7a8319c855d345fe9d575eca0 /Makefile | |
| parent | 09782f20e07741e35eb93db34bd3282b48efaf71 (diff) | |
| download | psutil-00a85b6f7ac61dcd6a44df06a377c5dcfb53c725.tar.gz | |
avoid to install p2 deps on py3; also install sphinx in doc Makefile only
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -11,20 +11,24 @@ DEPS = \ check-manifest \ coverage \ flake8 \ - futures \ - ipaddress \ - mock==1.0.1 \ pyperf \ requests \ setuptools \ - sphinx \ twine \ - unittest2 \ virtualenv \ wheel +ifeq ($(PYTHON), $(filter $(PYTHON), python python2 python2.7)) + DEPS += \ + futures \ + ipaddress \ + mock==1.0.1 \ + unittest2 +endif + # In not in a virtualenv, add --user options for install commands. -INSTALL_OPTS = `$(PYTHON) -c "import sys; print('' if hasattr(sys, 'real_prefix') else '--user')"` +INSTALL_OPTS = `$(PYTHON) -c \ + "import sys; print('' if hasattr(sys, 'real_prefix') else '--user')"` TEST_PREFIX = PYTHONWARNINGS=all PSUTIL_TESTING=1 PSUTIL_DEBUG=1 all: test |
