From c16f1ff8d02ffe6e71685862b6378b2b7f97a2e1 Mon Sep 17 00:00:00 2001 From: Jonathan Holloway Date: Sun, 4 Feb 2018 21:51:20 -0600 Subject: readthedocs.org fix /usr/share cannot open error Add a try around dir copy to eliminate readthedocs.org cannot open error Change-Id: Ie9160a8b7dc42839fe4c176c89aa67ae26c1266e Signed-off-by: Jonathan Holloway --- glustolibs-gluster/setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'glustolibs-gluster/setup.py') diff --git a/glustolibs-gluster/setup.py b/glustolibs-gluster/setup.py index 005571b83..b4b1cf170 100644 --- a/glustolibs-gluster/setup.py +++ b/glustolibs-gluster/setup.py @@ -19,7 +19,7 @@ from setuptools import setup, find_packages from distutils import dir_util -version = '0.21' +version = '0.22' name = 'glustolibs-gluster' setup( @@ -48,4 +48,7 @@ setup( namespace_packages = ['glustolibs'] ) -dir_util.copy_tree('./gdeploy_configs', '/usr/share/glustolibs/gdeploy_configs') +try: + dir_util.copy_tree('./gdeploy_configs', '/usr/share/glustolibs/gdeploy_configs') +except: + pass -- cgit