aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Carranza <pcarranza@gmail.com>2017-06-10 23:48:06 +0200
committerPablo Carranza <pcarranza@gmail.com>2017-06-10 23:48:06 +0200
commit07481a34407d6ad98bebaa12127b86c352a04752 (patch)
tree7d577235c3ba3fc3d857060196364b4809ba9e6c
parent730f895edee9a6201741b4e511c2572fcb56649d (diff)
downloadprometheus-pgbouncer-exporter-07481a34407d6ad98bebaa12127b86c352a04752.tar
prometheus-pgbouncer-exporter-07481a34407d6ad98bebaa12127b86c352a04752.tar.gz
Add limitation to only install with python3 or up
-rw-r--r--setup.py4
1 files changed, 4 insertions, 0 deletions
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(),