From 8bec8086a07e2e6ec6c2e12ad91654d461c99eee Mon Sep 17 00:00:00 2001 From: fasiondog Date: Sun, 30 Jan 2022 18:16:29 +0800 Subject: [PATCH] update for setup.py, xmake.lua --- setup.py | 12 ++++++++++-- xmake.lua | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index df33c684c..cc55d95f9 100644 --- a/setup.py +++ b/setup.py @@ -231,7 +231,10 @@ def cli(): @click.option('-m', '--mode', default='release', - type=click.Choice(['release', 'debug', 'coverage', 'asan', 'tsan', 'msan', 'lsan']), + type=click.Choice([ + 'release', 'debug', 'coverage', 'asan', 'tsan', 'msan', + 'lsan' + ]), help='编译模式') def build(verbose, mode, j): """ 执行编译 """ @@ -246,7 +249,10 @@ def build(verbose, mode, j): @click.option('-m', '--mode', default='release', - type=click.Choice(['release', 'debug', 'coverage', 'asan', 'msan', 'tsan', 'lsan']), + type=click.Choice([ + 'release', 'debug', 'coverage', 'asan', 'msan', 'tsan', + 'lsan' + ]), help='编译模式') @click.option('-case', '--case', default='', help="执行指定的 TestCase") def test(all, compile, verbose, mode, case, j): @@ -310,6 +316,8 @@ def uninstall(): if dir == 'hikyuu' or (len(dir) > 6 and dir[:6] == 'Hikyuu'): print('delete', site_lib_dir + '/' + dir) shutil.rmtree(site_lib_dir + '/' + dir) + if os.path.exists("./hikyuu.egg-info"): + shutil.rmtree("./hikyuu.egg-info") print("Uninstall finished!") diff --git a/xmake.lua b/xmake.lua index 3b631396a..ae77b4e18 100644 --- a/xmake.lua +++ b/xmake.lua @@ -9,7 +9,7 @@ if not is_plat("windows") then end -- version -set_version("1.2.0", {build="%Y%m%d%H%M"}) +set_version("1.2.1", {build="%Y%m%d%H%M"}) set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别 --if is_mode("debug") then -- set_configvar("LOG_ACTIVE_LEVEL", 0) -- 激活的日志级别