summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMathieu Bridon <bochecha@daitauha.fr>2017-08-03 18:45:59 +0200
committerMathieu Bridon <bochecha@daitauha.fr>2017-08-04 08:16:45 +0200
commite80491c54de5c54fe666526cd01217375d128efd (patch)
tree8438ceb0b02cda88dbb1ef4e22d7ab1cdbdb151f /setup.py
parent1b8a348919b00a1d0d6e4b0110646b884b72dec8 (diff)
downloadpyramid-e80491c54de5c54fe666526cd01217375d128efd.tar.gz
pyramid-e80491c54de5c54fe666526cd01217375d128efd.tar.bz2
pyramid-e80491c54de5c54fe666526cd01217375d128efd.zip
Drop repoze.lru on Python 3
Starting with Python 3.2, the functools module grew a lru_cache function which can replace our usage of repoze.lru.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 2af0535c3..3a7f7e161 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,8 @@
#
##############################################################################
+import sys
+
from setuptools import setup, find_packages
def readfile(name):
@@ -24,7 +26,6 @@ CHANGES = readfile('CHANGES.txt')
install_requires = [
'setuptools',
'WebOb >= 1.7.0rc2', # Response.has_body
- 'repoze.lru >= 0.4', # py3 compat
'zope.interface >= 3.8.0', # has zope.interface.registry
'zope.deprecation >= 3.5.0', # py3 compat
'venusian >= 1.0a3', # ``ignore``
@@ -87,6 +88,7 @@ setup(name='pyramid',
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
install_requires=install_requires,
extras_require={
+ ':python_version<"3.2"': ['repoze.lru >= 0.4'],
'testing': testing_extras,
'docs': docs_extras,
},