Skip to content

Commit 4705ede

Browse files
authored
Merge pull request #496 from ramonsaraiva/add-functools-lru-cache-setup
Add functools-lru-cache to setup
2 parents a5b4f4c + 62c5312 commit 4705ede

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import codecs
22
import os.path
33
import re
4+
import sys
45

56
try:
67
from setuptools import setup
@@ -25,6 +26,10 @@ def grep(attrname):
2526

2627
file_text = read(fpath('arrow/__init__.py'))
2728

29+
install_requires = ['python-dateutil']
30+
if sys.version_info[0] < 3:
31+
install_requires.append('backports.functools_lru_cache==1.2.1')
32+
2833
setup(
2934
name='arrow',
3035
version=grep('__version__'),
@@ -36,9 +41,7 @@ def grep(attrname):
3641
license='Apache 2.0',
3742
packages=['arrow'],
3843
zip_safe=False,
39-
install_requires=[
40-
'python-dateutil'
41-
],
44+
install_requires=install_requires,
4245
test_suite="tests",
4346
classifiers=[
4447
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)