From f468367522c567ea6badac91cce80092244bb7a5 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 7 Feb 2017 12:17:27 +0100 Subject: [PATCH] nvidia-ml-py is Python 2-only (shame) --- README.rst | 2 +- optional-requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index b96bd5cc..cdc6d214 100644 --- a/README.rst +++ b/README.rst @@ -61,7 +61,7 @@ Optional dependencies: - ``influxdb`` (for the InfluxDB export module) - ``matplotlib`` (for graphical/chart support) - ``netifaces`` (for the IP plugin) -- ``nvidia-ml-py`` (for the GPU plugin) +- ``nvidia-ml-py`` (for the GPU plugin) [Python 2-only] - ``pika`` (for the RabbitMQ/ActiveMQ export module) - ``potsdb`` (for the OpenTSDB export module) - ``py3sensors`` (for hardware monitoring support) [Linux-only] diff --git a/optional-requirements.txt b/optional-requirements.txt index 926c046a..869343a7 100644 --- a/optional-requirements.txt +++ b/optional-requirements.txt @@ -8,7 +8,7 @@ elasticsearch influxdb matplotlib netifaces -nvidia-ml-py +nvidia-ml-py; python_version == "2.7" pika potsdb py-cpuinfo diff --git a/setup.py b/setup.py index 6ab51441..3069aaf4 100755 --- a/setup.py +++ b/setup.py @@ -87,7 +87,7 @@ setup( 'export': ['bernhard', 'cassandra-driver', 'couchdb', 'elasticsearch', 'influxdb>=1.0.0', 'pika', 'potsdb', 'pyzmq', 'statsd'], 'folders:python_version<"3.5"': ['scandir'], - 'gpu': ['nvidia-ml-py'], + 'gpu:python_version=="2.7"': ['nvidia-ml-py'], 'ip': ['netifaces'], 'raid': ['pymdstat'], 'snmp': ['pysnmp'], -- GitLab