mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 21:57:43 +03:00
log used python version
This commit is contained in:
parent
0759673e67
commit
7f3fedc048
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
|
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import ssl
|
import ssl
|
||||||
|
import sys
|
||||||
from importlib import import_module, metadata
|
from importlib import import_module, metadata
|
||||||
from typing import Callable, Sequence, Type, TypeVar, Union
|
from typing import Callable, Sequence, Type, TypeVar, Union
|
||||||
|
|
||||||
|
@ -55,6 +56,7 @@ def package_version(name):
|
||||||
|
|
||||||
def packages_version():
|
def packages_version():
|
||||||
versions = []
|
versions = []
|
||||||
|
versions.append("python=%s.%s.%s" % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))
|
||||||
for pkg in RADICALE_MODULES:
|
for pkg in RADICALE_MODULES:
|
||||||
versions.append("%s=%s" % (pkg, package_version(pkg)))
|
versions.append("%s=%s" % (pkg, package_version(pkg)))
|
||||||
return " ".join(versions)
|
return " ".join(versions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue