mirror of https://github.com/docker/compose.git
Report Python and OpenSSL versions in --version output
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
8eb65ed946
commit
c571bb485d
|
@ -8,6 +8,7 @@ from docker import version as docker_py_version
|
|||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import ssl
|
||||
|
||||
|
||||
def yesno(prompt, default=None):
|
||||
|
@ -132,6 +133,7 @@ def get_version_info(scope):
|
|||
elif scope == 'full':
|
||||
return versioninfo + '\n' \
|
||||
+ "docker-py version: %s\n" % docker_py_version \
|
||||
+ "%s version: %s" % (platform.python_implementation(), platform.python_version())
|
||||
+ "%s version: %s\n" % (platform.python_implementation(), platform.python_version()) \
|
||||
+ "OpenSSL version: %s" % ssl.OPENSSL_VERSION
|
||||
else:
|
||||
raise RuntimeError('passed unallowed value to `cli.utils.get_version_info`')
|
||||
|
|
|
@ -7,4 +7,4 @@ chmod 777 `pwd`/dist
|
|||
|
||||
pyinstaller -F bin/docker-compose
|
||||
mv dist/docker-compose dist/docker-compose-Linux-x86_64
|
||||
dist/docker-compose-Linux-x86_64 --version
|
||||
dist/docker-compose-Linux-x86_64 version
|
||||
|
|
|
@ -7,4 +7,4 @@ venv/bin/pip install -r requirements-dev.txt
|
|||
venv/bin/pip install .
|
||||
venv/bin/pyinstaller -F bin/docker-compose
|
||||
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
|
||||
dist/docker-compose-Darwin-x86_64 --version
|
||||
dist/docker-compose-Darwin-x86_64 version
|
||||
|
|
Loading…
Reference in New Issue