mirror of
https://github.com/mandiant/capa.git
synced 2025-12-22 07:10:29 -08:00
main: display spinner while generating viv workspace
This commit is contained in:
@@ -18,6 +18,7 @@ import datetime
|
||||
import textwrap
|
||||
import collections
|
||||
|
||||
import halo
|
||||
import tqdm
|
||||
import colorama
|
||||
|
||||
@@ -272,6 +273,7 @@ def get_workspace(path, format, should_save=True):
|
||||
def get_extractor_py2(path, format):
|
||||
import capa.features.extractors.viv
|
||||
|
||||
with halo.Halo(text="analyzing program", spinner="simpleDots"):
|
||||
vw = get_workspace(path, format, should_save=False)
|
||||
|
||||
try:
|
||||
|
||||
3
setup.py
3
setup.py
@@ -11,7 +11,8 @@ import sys
|
||||
|
||||
import setuptools
|
||||
|
||||
requirements = ["six", "tqdm", "pyyaml", "tabulate", "colorama", "termcolor", "ruamel.yaml", "wcwidth"]
|
||||
# halo==0.0.30 is the last version to support py2.7
|
||||
requirements = ["six", "tqdm", "pyyaml", "tabulate", "colorama", "termcolor", "ruamel.yaml", "wcwidth", "halo==0.0.30"]
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
# py3
|
||||
|
||||
Reference in New Issue
Block a user