delete db file if exist on startup
[rainbowstream.git] / setup.py
index 294fd8672795dec3b2c9725f6edb180261ec376c..dc7fa6fe033395c85216b2f889da8aa0b0c5341f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,10 @@
 from setuptools import setup, find_packages
-import sys
+import os, os.path, sys
 
-version = '0.3.4'
+# Bumped version
+version = '0.4.10'
 
+# Require
 install_requires = [
     "python-dateutil",
     "requests",
@@ -11,9 +13,18 @@ install_requires = [
     "twitter",
     "Pillow",
 ]
+
+# Python 3 doesn't hava pysqlite
 if sys.version[0] == "2":
     install_requires += ["pysqlite"]
 
+# Copy default config if not exists
+default = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
+if not os.path.isfile(default):
+    cmd = 'cp rainbowstream/colorset/config ' + default
+    os.system(cmd)
+
+# Setup
 setup(name='rainbowstream',
       version=version,
       description="A smart and nice Twitter client on terminal.",