From e90df9559b717d8235edce17fd7701b8d4f5de26 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 19 Jun 2015 12:25:16 +0200 Subject: [PATCH] Allow setting CLD2_PATH in environment --- README | 4 ++-- setup.py | 4 ++-- setup_full.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README b/README index a18c04b..17d8529 100644 --- a/README +++ b/README @@ -16,8 +16,8 @@ To build: (detects 163 languages). Install those libraries somewhere on your LD_LIBRARY_PATH, for example copy them into /usr/lib64. - * Edit both setup.py and setup_full.py: edit CLD2_PATH to point to - where you checked out the CLD2 sources. + * Define the CLD2_PATH environment variable to point to where you + checked out the CLD2 sources: export CLD2_PATH='/path/to/cld2' * python setup.py build diff --git a/setup.py b/setup.py index eb32aea..933e364 100755 --- a/setup.py +++ b/setup.py @@ -22,8 +22,8 @@ import os # NOTE: change this to point to where you checked out the CLD2 -# sources: -CLD2_PATH = '/usr/include/cld2' +# sources, or define the CLD2_PATH environment variable +CLD2_PATH = os.environ.get('CLD2_PATH', '/usr/include/cld2') # Test suite class cldtest(distutils.core.Command): diff --git a/setup_full.py b/setup_full.py index 18fabc5..06a48ef 100644 --- a/setup_full.py +++ b/setup_full.py @@ -22,8 +22,8 @@ import os # NOTE: change this to point to where you checked out the CLD2 -# sources: -CLD2_PATH = '/usr/include/cld2' +# sources, or define the CLD2_PATH environment variable +CLD2_PATH = os.environ.get('CLD2_PATH', '/usr/include/cld2') # Test suite class cldtest(distutils.core.Command):