Skip to content

Commit f0921e3

Browse files
committed
Support older setuptools for install_requires
1 parent 6e7a10b commit f0921e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
from setuptools import setup, find_packages
55
from distutils.core import Extension
66
import sys
7+
8+
INSTALL_REQUIRES = list()
9+
710
if sys.version_info[0] < 3:
811
avro = 'avro'
12+
INSTALL_REQUIRES.extend(['futures', 'enum34'])
913
else:
1014
avro = 'avro-python3'
1115

@@ -37,10 +41,7 @@ def get_install_requirements(path):
3741
ext_modules=[module],
3842
packages=find_packages(exclude=("tests", "tests.*")),
3943
data_files=[('', ['LICENSE.txt'])],
40-
install_requires=[
41-
'futures;python_version<"3.0"',
42-
'enum34;python_version<"3.0"'
43-
],
44+
install_requires=INSTALL_REQUIRES,
4445
extras_require={
4546
'avro': ['fastavro', 'requests', avro],
4647
'dev': get_install_requirements("test-requirements.txt")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy