From ef59174956aef2173cc0a7fa444def3b7841f1e0 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 23 Jun 2017 22:32:44 -0300 Subject: [pkg] skip init.d if building in readthedocs --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b86c7b4c..d7c1eeaf 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,8 @@ from setuptools.command.develop import develop as _cmd_develop isset = lambda var: os.environ.get(var, None) -if isset('VIRTUAL_ENV') or isset('LEAP_SKIP_INIT'): +skip = ['VIRTUAL_ENV', 'LEAP_SKIP_INIT', 'READTHEDOCS'] +if len(filter(isset, skip)): data_files = None else: # XXX this should go only for linux/mac -- cgit v1.2.3