Skip to content

Commit

Permalink
Merge pull request #1 from pquentin/master
Browse files Browse the repository at this point in the history
Allow setting CLD2_PATH in environment
  • Loading branch information
vshlapakov committed Aug 6, 2015
2 parents 384f84b + e90df95 commit 433f91e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions setup_full.py
Expand Up @@ -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):
Expand Down

0 comments on commit 433f91e

Please sign in to comment.