From eb6af7c29007a922f64ac52fcc7f9ca24b3198aa Mon Sep 17 00:00:00 2001 From: Shwetha Panduranga Date: Fri, 21 Oct 2016 01:14:41 +0530 Subject: Recursively copy the data_files to the specified location maintaining the same directory structure. Change-Id: I1b50bb404066dc1a1562f406896b6a5bbf866a72 Signed-off-by: Shwetha Panduranga --- glustolibs-io/setup.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/glustolibs-io/setup.py b/glustolibs-io/setup.py index 183cc23b5..810ddc5dd 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') -- cgit