diff options
-rwxr-xr-x | cmd2.py | 8 | ||||
-rwxr-xr-x | setup.py | 2 |
2 files changed, 8 insertions, 2 deletions
@@ -52,8 +52,14 @@ except ImportError: import pyparsing import pyperclip -from pyperclip import PyperclipException +# Newer versions of pyperclip are released as a single file, but older versions had a more complicated structure +try: + from pyperclip.exceptions import PyperclipException +except ImportError: + # noinspection PyUnresolvedReferences + from pyperclip import PyperclipException + # Collection is a container that is sizable and iterable # It was introduced in Python 3.6. We will try to import it, otherwise use our implementation try: @@ -61,7 +61,7 @@ Programming Language :: Python :: Implementation :: PyPy3 Topic :: Software Development :: Libraries :: Python Modules """.splitlines()))) -INSTALL_REQUIRES = ['pyparsing >= 2.1.0', 'pyperclip >= 1.6.0'] +INSTALL_REQUIRES = ['pyparsing >= 2.1.0', 'pyperclip >= 1.5.27'] EXTRAS_REQUIRE = { # Windows also requires pyreadline to ensure tab completion works |