Skip to content

Commit e756480

Browse files
authored
fix: h5py version in python>=3.9 (#500)
* fix: h5py version in python>=3.9 Co-authored-by: 浅梦 <[email protected]>
1 parent 91dc7c6 commit e756480

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

setup.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
with open("README.md", "r") as fh:
66
long_description = fh.read()
77

8-
if sys.version_info < (3, 9):
9-
REQUIRED_PACKAGES = [
10-
'h5py==2.10.0', 'requests'
11-
]
12-
else:
13-
REQUIRED_PACKAGES = [
14-
'h5py==3.7.0', 'requests'
15-
]
8+
REQUIRED_PACKAGES = [
9+
'requests',
10+
'h5py==3.7.0; python_version>="3.9"',
11+
'h5py==2.10.0; python_version<"3.9"'
12+
]
1613

1714
setuptools.setup(
1815
name="deepctr",

0 commit comments

Comments
 (0)