Skip to content

Commit

Permalink
Print useful message for missing ProtoBuf Environment Variable problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhong Guo authored and houseroad committed Jan 16, 2018
1 parent cf2e52b commit 9935835
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def __init__(self):
includes.append(os.path.join(os.getenv('PROTOBUF_INCDIR')))
elif use_conda:
includes.append(os.path.join(os.getenv('CONDA_PREFIX'), "Library", "Include"))
else:
print("Warning: Environment Variable PROTOBUF_INCDIR or CONDA_PREFIX is not set, which may cause protobuf including folder error.")

self.libraries = libs
self.include_dirs = includes
Expand Down

0 comments on commit 9935835

Please sign in to comment.