summaryrefslogtreecommitdiffstats
path: root/glustolibs-io
diff options
context:
space:
mode:
authorShwetha Panduranga <spandura@redhat.com>2016-10-21 01:14:41 +0530
committerJonathan Holloway <jholloway@redhat.com>2016-10-25 14:16:37 -0700
commiteb6af7c29007a922f64ac52fcc7f9ca24b3198aa (patch)
tree342d78c3d45bb320fc692ac8c193d21d470a1f97 /glustolibs-io
parent935449bd5404b0ec61eed31864bf697477a79a7b (diff)
Recursively copy the data_files to the specified location maintaining the same
directory structure. Change-Id: I1b50bb404066dc1a1562f406896b6a5bbf866a72 Signed-off-by: Shwetha Panduranga <spandura@redhat.com>
Diffstat (limited to 'glustolibs-io')
-rw-r--r--glustolibs-io/setup.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/glustolibs-io/setup.py b/glustolibs-io/setup.py
index 183cc23..810ddc5 100644
--- a/glustolibs-io/setup.py
+++ b/glustolibs-io/setup.py
@@ -17,15 +17,11 @@
#
import os
from setuptools import setup, find_packages
+from distutils import dir_util
version = '0.1.1'
name = 'glustolibs-io'
-sharedfiles = []
-for root, dir, files in os.walk('shared_files'):
- for file in files:
- sharedfiles.append(os.path.join(root, file))
-
setup(
name=name,
version=version,
@@ -49,6 +45,6 @@ setup(
],
install_requires=['glusto'],
dependency_links=['http://github.com/loadtheaccumulator/glusto/tarball/master#egg=glusto'],
- namespace_packages = ['glustolibs'],
- data_files=[('/usr/share/glustolibs/io', sharedfiles)]
+ namespace_packages = ['glustolibs']
)
+dir_util.copy_tree('./shared_files', '/usr/share/glustolibs/io')