From 07481a34407d6ad98bebaa12127b86c352a04752 Mon Sep 17 00:00:00 2001 From: Pablo Carranza Date: Sat, 10 Jun 2017 23:48:06 +0200 Subject: Add limitation to only install with python3 or up --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 3035917..c7971e5 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,9 @@ +import sys from setuptools import setup, find_packages +if sys.version_info.major < 3: + raise RuntimeError('Installing requires Python 3 or newer') + setup( name="prometheus-pgbouncer-exporter", packages=find_packages(), -- cgit v1.2.3