diff --git a/setup.py b/setup.py index 5f07d6cb..d4afe462 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,8 @@ def check_extension_build_flag(ext_modules, key: str, module: Extension): elif value == '0': ext_modules = list(set(ext_modules) - {module}) else: - raise ValueError(f"Flag {key} should be '0' or '1', but {repr(value)} got.") + raise ValueError( + f"Flag {key} should be '0' or '1', but {repr(value)} got.") return ext_modules @@ -73,7 +74,9 @@ def get_install_requires(): "rqdatac", "ta-lib", "ibapi", - "deap" + "deap", + "pyzmq", + "QScintilla" ] if not is_psycopg2_exists(): install_requires.append("psycopg2-binary") @@ -171,9 +174,12 @@ def get_ext_modules(): else: ext_modules = [vnctptd, vnctpmd, vnoes] - ext_modules = check_extension_build_flag(ext_modules, "VNPY_BUILD_OES", vnoes) - ext_modules = check_extension_build_flag(ext_modules, "VNPY_BUILD_CTP", vnctptd) - ext_modules = check_extension_build_flag(ext_modules, "VNPY_BUILD_CTP", vnctpmd) + ext_modules = check_extension_build_flag( + ext_modules, "VNPY_BUILD_OES", vnoes) + ext_modules = check_extension_build_flag( + ext_modules, "VNPY_BUILD_CTP", vnctptd) + ext_modules = check_extension_build_flag( + ext_modules, "VNPY_BUILD_CTP", vnctpmd) return ext_modules diff --git a/vnpy/app/portfolio_manager/ui/portfolio.ico b/vnpy/app/portfolio_manager/ui/portfolio.ico index 09f632d8..6b783dfe 100644 Binary files a/vnpy/app/portfolio_manager/ui/portfolio.ico and b/vnpy/app/portfolio_manager/ui/portfolio.ico differ