Skip to content

Commit f5ff3c8

Browse files
committed
Making enum34 dependency conditional on Python version.
Fixes #3398.
1 parent 20f3368 commit f5ff3c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vision/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@
5151

5252

5353
REQUIREMENTS = [
54-
'enum34',
5554
'google-cloud-core >= 0.24.0, < 0.25dev',
5655
'gapic-google-cloud-vision-v1 >= 0.90.3, < 0.91dev',
5756
]
57+
EXTRAS_REQUIRE = {
58+
':python_version<"3.4"': ['enum34'],
59+
}
5860

5961
setup(
6062
name='google-cloud-vision',
@@ -67,5 +69,6 @@
6769
],
6870
packages=find_packages(exclude=('tests*',)),
6971
install_requires=REQUIREMENTS,
72+
extras_require=EXTRAS_REQUIRE,
7073
**SETUP_BASE
7174
)

0 commit comments

Comments
 (0)