Skip to content

Commit

Permalink
Merge pull request #108 from thiblahute/master
Browse files Browse the repository at this point in the history
Fix build when libcgraph headers are accessible without additional include path
  • Loading branch information
hagberg committed Nov 25, 2017
2 parents 64b8e60 + 18d7039 commit 36120f2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def _dpkg_config():
break
except OSError:
print("Failed to find dpkg")
except S.CalledProcessError:
print("Could not run dpkg")
return include_dirs, library_dirs


Expand Down Expand Up @@ -151,19 +153,19 @@ def get_graphviz_dirs():

if sys.platform != "win32":
# Attempt to find Graphviz installation
if library_dirs is None or include_dirs is None:
if library_dirs is None and include_dirs is None:
print("Trying dpkg")
include_dirs, library_dirs = _try_configure(include_dirs, library_dirs, _dpkg_config)

if library_dirs is None or include_dirs is None:
if library_dirs is None and include_dirs is None:
print("Trying pkg-config")
include_dirs, library_dirs = _try_configure(include_dirs, library_dirs, _pkg_config)

if library_dirs is None or include_dirs is None:
if library_dirs is None and include_dirs is None:
print("Trying dotneato-config")
include_dirs, library_dirs = _try_configure(include_dirs, library_dirs, _dotneato_config)

if library_dirs is None or include_dirs is None:
if library_dirs is None and include_dirs is None:
print()
print("""Your Graphviz installation could not be found.
Expand Down

0 comments on commit 36120f2

Please sign in to comment.