Skip to content

Commit 0b52a21

Browse files
committed
fluent-bundle setup.py fix for Python 2.7
1 parent 9cfff86 commit 0b52a21

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

fluent-bundle/setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/env python
22
from setuptools import setup
3+
import sys
4+
5+
if sys.version_info < (3, 4):
6+
extra_requires = ['singledispatch>=3.4']
7+
else:
8+
# functools.singledispatch is in stdlib from Python 3.4 onwards.
9+
extra_requires = []
310

411
setup(name='fluent_bundle',
512
version='0.1',
@@ -17,7 +24,7 @@
1724
'Programming Language :: Python :: 3.5',
1825
],
1926
packages=['fluent', 'fluent.bundle'],
20-
install_requires=['fluent>=0.9,<0.10'],
27+
install_requires=['fluent>=0.9,<0.10'] + extra_requires,
2128
tests_require=['six'],
2229
test_suite='tests'
23-
)
30+
)

0 commit comments

Comments
 (0)