From: Alfredo Deza Date: Tue, 24 Jun 2014 15:54:01 +0000 (-0400) Subject: support an environment var to avoid vendoring libraries X-Git-Tag: v1.5.6~6^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6d46535fcf29b01091ec27045c6830d4e27ec13c;p=ceph-deploy.git support an environment var to avoid vendoring libraries Signed-off-by: Alfredo Deza --- diff --git a/setup.py b/setup.py index 247e613..c1b06d2 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages import os import sys import ceph_deploy -from vendor import vendorize +from vendor import vendorize, clean_vendor def read(fname): @@ -16,11 +16,16 @@ if pyversion < (2, 7) or (3, 0) <= pyversion <= (3, 1): install_requires.append('argparse') # -# Add libraries that are not part of install_requires +# Add libraries that are not part of install_requires but only if we really +# want to, specified by the environment flag # -vendorize([ - ('remoto', '0.0.16'), -]) + +if os.environ.get('CEPH_DEPLOY_NO_VENDOR'): + clean_vendor('remoto') +else: + vendorize([ + ('remoto', '0.0.16'), + ]) setup(