summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-28 20:47:05 -0500
committerGitHub <noreply@github.com>2021-01-28 20:47:05 -0500
commitd5cebaef06719fdc01eba15e01fb70ef948e05c9 (patch)
tree7cd0010127ae50250e0843cab31540ec05e5806d /setup.py
parent44eb9d4e1946a3cc9a10fe85ccb617b6076f627c (diff)
parenta96c0f53b2a62a94582624c76c7d990012891204 (diff)
downloadcmd2-git-d5cebaef06719fdc01eba15e01fb70ef948e05c9.tar.gz
Merge pull request #1046 from KyleKing/patch-1
Update conditional pyreadline3 dependency for Win
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 5e2995a9..6b438b13 100755
--- a/setup.py
+++ b/setup.py
@@ -44,8 +44,9 @@ INSTALL_REQUIRES = [
]
EXTRAS_REQUIRE = {
- # Windows also requires pyreadline to ensure tab completion works
- ":sys_platform=='win32'": ['pyreadline'],
+ # Windows also requires pyreadline or the replacement, pyreadline3, to ensure tab completion works
+ ":sys_platform=='win32' and python_version<'3.8'": ["pyreadline"],
+ ":sys_platform=='win32' and python_version>='3.8'": ["pyreadline3"],
# Extra dependencies for running unit tests
'test': [
"gnureadline; sys_platform=='darwin'", # include gnureadline on macOS to ensure it is available in nox env