diff options
author | Pablo Carranza <pcarranza@gmail.com> | 2017-06-10 23:48:06 +0200 |
---|---|---|
committer | Pablo Carranza <pcarranza@gmail.com> | 2017-06-10 23:48:06 +0200 |
commit | 07481a34407d6ad98bebaa12127b86c352a04752 (patch) | |
tree | 7d577235c3ba3fc3d857060196364b4809ba9e6c | |
parent | 730f895edee9a6201741b4e511c2572fcb56649d (diff) | |
download | prometheus-pgbouncer-exporter-07481a34407d6ad98bebaa12127b86c352a04752.tar prometheus-pgbouncer-exporter-07481a34407d6ad98bebaa12127b86c352a04752.tar.gz |
Add limitation to only install with python3 or up
-rw-r--r-- | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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(), |