fix mongo cloud dns connection

This commit is contained in:
Milan Kolar 2021-04-20 16:46:10 +02:00
parent 1d047b968c
commit 683dfdce31
2 changed files with 17 additions and 8 deletions

View file

@ -130,7 +130,7 @@ def validate_mongo_connection(cnx: str) -> (bool, str):
mongo_args["port"] = int(port)
try:
client = MongoClient(**mongo_args)
client = MongoClient(cnx)
client.server_info()
client.close()
except ServerSelectionTimeoutError as e:

View file

@ -45,7 +45,8 @@ install_requires = [
"googleapiclient",
"httplib2",
# Harmony implementation
"filecmp"
"filecmp",
"dns"
]
includes = []
@ -69,7 +70,11 @@ if sys.platform == "win32":
"pythoncom"
])
build_options = dict(
icon_path = openpype_root / "igniter" / "openpype.ico"
mac_icon_path = openpype_root / "igniter" / "openpype.icns"
build_exe_options = dict(
packages=install_requires,
includes=includes,
excludes=excludes,
@ -78,13 +83,16 @@ build_options = dict(
optimize=0
)
icon_path = openpype_root / "igniter" / "openpype.ico"
bdist_mac_options = dict(
bundle_name="OpenPype",
iconfile=mac_icon_path
)
executables = [
Executable("start.py", base=None,
target_name="openpype_console", icon=icon_path.as_posix()),
Executable("start.py", base=base,
target_name="openpype_gui", icon=icon_path.as_posix())
target_name="openpype_gui", icon=icon_path.as_posix()),
Executable("start.py", base=None,
target_name="openpype_console", icon=icon_path.as_posix())
]
setup(
@ -93,7 +101,8 @@ setup(
description="Ultimate pipeline",
cmdclass={"build_sphinx": BuildDoc},
options={
"build_exe": build_options,
"build_exe": build_exe_options,
"bdist_mac": bdist_mac_options,
"build_sphinx": {
"project": "OpenPype",
"version": __version__,