summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2017-03-28 01:18:21 -0500
committerMichael Merickel <michael@merickel.org>2017-03-28 01:18:45 -0500
commit441503653073f465c0140f6f78f079526cf8efc2 (patch)
tree49f281aad4167de14a9f1b39e3c829fd71a4bc03 /setup.py
parent8b96cfeedd5aee88cfb1a744d480130853526a87 (diff)
downloadpyramid-441503653073f465c0140f6f78f079526cf8efc2.tar.gz
pyramid-441503653073f465c0140f6f78f079526cf8efc2.tar.bz2
pyramid-441503653073f465c0140f6f78f079526cf8efc2.zip
depend on python_requires in pip 9+ to check runtime versions
- The python_requires checks work when installing a wheel as well, which these checks did not affect.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/setup.py b/setup.py
index 29de8dcdf..ff3e38874 100644
--- a/setup.py
+++ b/setup.py
@@ -13,21 +13,9 @@
##############################################################################
import os
-import sys
-import warnings
from setuptools import setup, find_packages
-py_version = sys.version_info[:2]
-
-if (3, 0) <= py_version < (3, 4):
- warnings.warn(
- 'On Python 3, Pyramid only supports Python 3.4 or better',
- UserWarning,
- )
-elif py_version < (2, 7):
- raise RuntimeError('On Python 2, Pyramid requires Python 2.7 or better')
-
here = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(here, 'README.rst')) as f: