Ammends beets to only import and requires colorama on win32

---
 beets/ui/__init__.py |    5 +++--
 setup.py             |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
This commit is contained in:
Karl Southern 2012-03-14 14:17:41 -07:00
parent e05bda87b4
commit e6999df2d9
2 changed files with 4 additions and 3 deletions

View file

@ -32,8 +32,9 @@ from beets import library
from beets import plugins
from beets import util
import colorama
colorama.init()
if sys.platform == 'win32':
import colorama
colorama.init()
# Constants.
CONFIG_PATH_VAR = 'BEETSCONFIG'

View file

@ -75,7 +75,7 @@ setup(name='beets',
'munkres',
'unidecode',
'musicbrainzngs',
],
] + (['colorama'] if (sys.platform == 'win32') else []),
classifiers=[
'Topic :: Multimedia :: Sound/Audio',