コード例 #1
0
ファイル: setup.py プロジェクト: amccool/django-giftregistry
# OSX, Linux, alternate location
#library_path='/usr/local/lib/graphviz'
#include_path='/usr/local/include/graphviz'

# OSX (Fink)
#library_path='/sw/lib/graphviz'
#include_path='/sw/include/graphviz'

# OSX (MacPorts)
#library_path='/opt/local/lib/graphviz'
#include_path='/opt/local/include/graphviz'

# Attempt to find Graphviz installation
if library_path is None and include_path is None:
    print "Trying pkg-config"
    include_path,library_path=pkg_config()

if library_path is None and include_path is None:
    print "Trying dotneato-config"
    include_path,library_path=dotneato_config()

if library_path is None or include_path is None:
    print 
    print  """Your graphviz installation could not be found.

Either the graphviz package is missing on incomplete
(binary packages graphviz-dev or graphviz-devel missing?).  

If you think your installation is correct you will need to manually
change the include_path and library_path variables in setup.py to
point to the correct locations of your graphviz installation.
コード例 #2
0
ファイル: setup.py プロジェクト: sealedkeyhole/pygraphviz
# OSX (MacPorts)
#library_dirs='/opt/local/lib/graphviz'
#include_dirs='/opt/local/include/graphviz'

# Windows
# Unknown - use command line -I and -L switches to set

if sys.platform == "win32":
    define_macros.append(('GVDLL', None))

else:
    # Attempt to find Graphviz installation
    if library_dirs is None and include_dirs is None:
        print("Trying pkg-config")
        include_dirs, library_dirs = pkg_config()

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

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

    1) You don't have Graphviz installed:
       Install Graphviz (http://graphviz.org)

    2) Your Graphviz package might incomplete.
       Install the binary development subpackage (e.g. libgraphviz-dev or similar.)
コード例 #3
0
ファイル: setup.py プロジェクト: davidfischer-ch/pygraphviz
# OSX (MacPorts)
#library_dirs='/opt/local/lib/graphviz'
#include_dirs='/opt/local/include/graphviz'

# Windows
# Unknown - use command line -I and -L switches to set

if sys.platform == "win32":
    define_macros.append(('GVDLL', None))

else:
    # Attempt to find Graphviz installation
    if library_dirs is None and include_dirs is None:
        print("Trying pkg-config")
        include_dirs, library_dirs = pkg_config()

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

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

    1) You don't have Graphviz installed:
       Install Graphviz (http://graphviz.org)

    2) Your Graphviz package might incomplete.
       Install the binary development subpackage (e.g. libgraphviz-dev or similar.)
コード例 #4
0
# OSX (Fink)
#library_path='/sw/lib/graphviz'
#include_path='/sw/include/graphviz'

# OSX (MacPorts)
#library_path='/opt/local/lib/graphviz'
#include_path='/opt/local/include/graphviz'

# Windows
# Unknown

# Attempt to find Graphviz installation
if library_path is None and include_path is None:
    print "Trying pkg-config"
    include_path,library_path=pkg_config()

if library_path is None and include_path is None:
    print "Trying dotneato-config"
    include_path,library_path=dotneato_config()

if library_path is None or include_path is None:
    print 
    print  """Your Graphviz installation could not be found.

1) You don't have Graphviz installed:
   Install Graphviz (http://graphviz.org)

2) Your Graphviz package might incomplete.
   Install the binary development subpackage (e.g. libgraphviz-dev or similar.)