update the install and version
authorchengtao.liu <chengtaox.liu@intel.com>
Wed, 26 Mar 2014 03:16:21 +0000 (11:16 +0800)
committerchengtao.liu <chengtaox.liu@intel.com>
Wed, 26 Mar 2014 03:16:21 +0000 (11:16 +0800)
VERSION
debian/changelog
packaging/testkit-lite.spec
setup.py

diff --git a/VERSION b/VERSION
index 954fd94..8f363ec 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,4 +1,4 @@
 [public_version]
-version=3.0.7
+version=3.0.10
 [internal_version]
-version=3.0.7
+version=3.0.10
index 86659b2..e2ad7e0 100644 (file)
@@ -1,4 +1,4 @@
-testkit-lite (3.0.7) unstable; urgency=low
+testkit-lite (3.0.10) unstable; urgency=low
 
   * Public Release.
 
index e1333a0..6fab9cf 100644 (file)
@@ -1,6 +1,6 @@
 Summary: TCT-Lite
 Name: testkit-lite
-Version: 3.0.7
+Version: 3.0.10
 Release: 1
 License: GPLv2
 Group: Applications/System
index fdb4306..13d1275 100644 (file)
--- a/setup.py
+++ b/setup.py
 #              Yuanyuan,Zou  <yuanyuanx.zou@intel.com>
 
 from setuptools import setup, find_packages
+import os
+from stat import ST_MODE, S_ISDIR
+from distutils.command.install_data import install_data
+
+
+class post_install_cmd(install_data):
+    def run (self):
+        install_data.run(self)
+        if os.name == 'posix':
+            for path in ['/opt/testkit/lite','/opt/testkit/lite/commodule/']:
+                mode = os.stat(path)[ST_MODE]
+                mode |= 066
+                os.chmod(path, mode)
+
 
 setup(
     name = "testkit-lite",
@@ -23,11 +37,12 @@ setup(
     url = "https://github.com/testkit/testkit-lite",
     author = "Shaofeng Tang",
     author_email = "shaofeng.tang@intel.com",
-    version = "3.0.7",
+    version = "3.0.10",
     include_package_data = True,
     data_files = [('/opt/testkit/lite', ['VERSION', 'doc/testkit-lite_user_guide.pdf', 'doc/testkit-lite_tutorial.pdf', 'doc/test_definition_schema.pdf']),
                   ('/opt/testkit/lite/commodule/', ['CONFIG']),
                   ('/etc/dbus-1/system.d/', ['dbus/com.intel.testkit.conf'])],
     scripts = ('testkit-lite', 'testkit-lite-dbus'),
     packages = find_packages(),
+    cmdclass = {'install_data': post_install_cmd},
 )