Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit d688a3b

Browse files
author
Malcolm Greaves
committed
coremltools is python-dependent in requires_dist
Makes the `coremltools` version explicitly dependent on the Python version in `install_requires`
1 parent a918b2d commit d688a3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ def do_not_install(require):
181181

182182
if sys.version_info[0] == 3 and sys.version_info[1] == 8:
183183
# Only 4.0 betas support Python 3.8
184-
install_requires.append("coremltools==4.0b3")
184+
install_requires.append("coremltools==4.0b3; python_version >= 3.8.0',")
185185
else:
186-
install_requires.append("coremltools==3.3")
186+
install_requires.append("coremltools==3.3; python_version < 3.8.0")
187187

188188
if sys.platform == "darwin":
189189
install_requires.append("tensorflow >= 2.0.0")

0 commit comments

Comments
 (0)