Skip to content

Commit

Permalink
ssl_match_hostname code was added in 2.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Jan 25, 2015
1 parent 34f10c0 commit f7f5f70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Expand Up @@ -5,9 +5,10 @@
NAME="websocket-client"

install_requires = ["six"]
if sys.version_info[0] == 2:
install_requires.append('backports.ssl_match_hostname')
if sys.version_info[1] < 7:
if sys.version_info.major == 2:
if sys.version_info.minor == 7 and sys.version_info.micro < 9:
install_requires.append('backports.ssl_match_hostname')
if sys.version_info.minor < 7:
install_requires.append('unittest2')
install_requires.append('argparse')

Expand Down

0 comments on commit f7f5f70

Please sign in to comment.