~ubuntu-branches/ubuntu/trusty/python-networkx/trusty

« back to all changes in this revision

Viewing changes to networkx/drawing/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-12-10 23:50:27 UTC
  • mfrom: (1.2.4 upstream) (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20101210235027-b2supdwo0ad39d3s
Tags: 1.3-1
* New upstream release
* debian/patches/changeset_r1745.diff
  - dropped, available in upstream release
* debian/patches/10_doc_relocation
  - refreshed patch for new upstream code
* debian/control
  - upstream code is now compatible with 2.6 or later only
  - bump Standards-Version to 3.9.1 (no changes needed)
* debian/{control, rules}
  - run unittests at build time, b-d on python-nose added
* debian/copyright
  - removed reference to /usr/share/common-licenses/BSD
* Create a -doc package ; thanks to Yaroslav Halchenko for the report;
  Closes: #567369
  - (d/control) define a new binary package, and add depends on sphinx (>= 1)
  - (d/rules) build documentation, install it into the new -doc package
  - (d/patches/30_use_local_objects.inv) use local copy of remote objects.inv
* debian/{control, rules}
  - moved to dh7 and "reduced" rules file
* debian/rules
  - refer to built code when building doc
* debian/python-networkx-doc.doc-base
  - added doc-base information
* debian/patches/40_add_networkxcss
  - added as patch, since networkx.css is missing from the tarball, but needed
    to display properly HTML documentation
* debian/patches/50_boundary-test-fix.patch
  - upstream patch to restrict node boundary test cases to valid range
* debian/patches/60_remove_svn_refs.diff
  - upstream patch to remove references to old SVN repository (now Mercurial)
* debian/patches/70_set_matplotlib_ps_backend.patch
  - set matplotlib backend to 'PS', so a DISPLAY it's not required and the
    tests can be run in a "reduced" environment

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# graph drawing and interface to graphviz
2
 
from nx_pydot import *
3
 
from nx_agraph import *
4
 
from nx_pylab import *
5
 
from layout import *
6
 
import layout
7
 
import nx_pydot
8
 
import nx_agraph
9
 
import nx_pylab
 
2
import sys
 
3
# These packages need 2.6 <= Python < 3.0
 
4
if sys.version_info[:2] < (3, 0):
 
5
    from nx_pylab import *
 
6
    import nx_pylab
 
7
    from layout import *
 
8
    import layout
 
9
 
 
10
    # graphviz interface
 
11
    # prefer pygraphviz/agraph (it's faster)
 
12
    from nx_agraph import *
 
13
    import nx_agraph
 
14
    try:
 
15
        import pydot
 
16
        import nx_pydot    
 
17
        from nx_pydot import *
 
18
    except:
 
19
        pass
 
20
 
 
21
    try:
 
22
        import pygraphviz
 
23
        from nx_agraph import *
 
24
    except:    
 
25
        pass 
 
26
else:
 
27
    import warnings
 
28
    warnings.warn('Drawing package networkx/drawing not supported '
 
29
                  'with Python 3.x')