Skip to content

Commit

Permalink
update for setup.py, xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Jan 30, 2022
1 parent e34d223 commit 8bec808
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
""" 执行编译 """
Expand All @@ -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):
Expand Down Expand Up @@ -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!")
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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) -- 激活的日志级别
Expand Down

0 comments on commit 8bec808

Please sign in to comment.