Only install ipaddress if python version < 3.3

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-04-19 16:38:46 -07:00
parent cba2e973ec
commit c76a914e01
2 changed files with 2 additions and 3 deletions

View File

@ -2,4 +2,4 @@ requests==2.5.3
six>=1.4.0 six>=1.4.0
websocket-client==0.32.0 websocket-client==0.32.0
backports.ssl_match_hostname>=3.5 ; python_version < '3.5' backports.ssl_match_hostname>=3.5 ; python_version < '3.5'
ipaddress ; python_version < '3.5' ipaddress==1.0.16 ; python_version < '3.3'

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import os import os
import sys
from setuptools import setup from setuptools import setup
ROOT_DIR = os.path.dirname(__file__) ROOT_DIR = os.path.dirname(__file__)
@ -14,7 +13,7 @@ requirements = [
extras_require = { extras_require = {
':python_version < "3.5"': 'backports.ssl_match_hostname >= 3.5', ':python_version < "3.5"': 'backports.ssl_match_hostname >= 3.5',
':python_version < "3.5"': 'ipaddress', ':python_version < "3.3"': 'ipaddress >= 1.0.16',
} }
exec(open('docker/version.py').read()) exec(open('docker/version.py').read())