File: README

package info (click to toggle)
renderdoc 1.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 79,584 kB
  • sloc: cpp: 491,671; ansic: 285,823; python: 12,617; java: 11,345; cs: 7,181; makefile: 6,703; yacc: 5,682; ruby: 4,648; perl: 3,461; php: 2,119; sh: 2,068; lisp: 1,835; tcl: 1,068; ml: 747; xml: 137
file content (25 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  This is an example (and test) of using swig generated modules in the context
of python3's namespace packages:

https://www.python.org/dev/peps/pep-0420/

  Consequently, this example requires python (3.3 or newer) to build and run.

  This example creates a simple swig module named robin.  The robin.py module
has a companion C module named _robin.so.  The robin module is tested in four
ways:

  1) As a non-package module (tested by nonpkg.py)

  2) With robin.py and _robin.so in the brave package under the path1
     subdirectory.  (tested by normal.py)

  3) With robin.py in path2/brave and _robin.so in path3/brave
     (tested by split.py)

  4) With robin.py contained in a zip file (path4.zip) as brave/robin.py and
     _robin.so found on the filesystem under path3/brave (tested by zipsplit.py)

Note: Using namespace packages with subpackages (such as brave.sir.robin) where
      robin.py is located in a zipfile requires python-3.5.1 or newer as
      python's zipimporter only worked with packages of depth 1 until then.