summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-15 17:39:28 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-15 17:39:28 +0100
commit00a85b6f7ac61dcd6a44df06a377c5dcfb53c725 (patch)
tree1179cd3e574630b7a8319c855d345fe9d575eca0 /Makefile
parent09782f20e07741e35eb93db34bd3282b48efaf71 (diff)
downloadpsutil-00a85b6f7ac61dcd6a44df06a377c5dcfb53c725.tar.gz
avoid to install p2 deps on py3; also install sphinx in doc Makefile only
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index dba9dacf..812ba9c2 100644
--- a/Makefile
+++ b/Makefile
@@ -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