Pyolian: add support EOLIAN_SO_DIR env var

Thanks goes to @lauromoura for proposing this in D5840
This commit is contained in:
Davide Andreoli 2018-03-16 20:00:49 +01:00
parent 7784405ad9
commit 81d15b7cd8
2 changed files with 9 additions and 2 deletions

View File

@ -25,6 +25,10 @@ tree, usually at efl compilation time (before the install step).
The only requirement is that **the source tree must be already built** (not
installed) because pyolian search the eolian .so/.dll inside the source tree.
If you built the efl tree in a custom location (fe, you build out-of-tree) you
can tell pyolian where to find the built eolian .so files using the
`EOLIAN_SO_DIR` environment variable.
Command line usage
==================

View File

@ -11,10 +11,13 @@ import os
script_path = os.path.dirname(os.path.realpath(__file__))
root_path = os.path.abspath(os.path.join(script_path, '..', '..', '..'))
search_in = (
search_in = [
os.path.join(root_path, 'src', 'lib', 'eolian', '.libs'),
os.path.join(root_path, 'build', 'src', 'lib', 'eolian'),
)
]
if 'EOLIAN_SO_DIR' in os.environ:
search_in.insert(0, os.environ['EOLIAN_SO_DIR'])
search_names = ('libeolian.so', 'eolian.dll')