~ubuntu-branches/ubuntu/precise/pyzmq/precise

« back to all changes in this revision

Viewing changes to zmq/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-02-15 09:08:36 UTC
  • mfrom: (2.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110215090836-phh4slym1g6muucn
Tags: 2.0.10.1-2
* Team upload.
* Upload to unstable
* Add Breaks: ${python:Breaks}

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# Imports
24
24
#-----------------------------------------------------------------------------
25
25
 
26
 
from zmq import _zmq
27
 
from zmq._zmq import *
28
 
 
29
 
__all__ = _zmq.__all__
 
26
from zmq.utils import initthreads # initialize threads
 
27
initthreads.init_threads()
 
28
 
 
29
from zmq import core, devices
 
30
from zmq.core import *
 
31
 
 
32
def get_includes():
 
33
    """Return a list of directories to include for linking against pyzmq with cython."""
 
34
    from os.path import join, dirname
 
35
    base = dirname(__file__)
 
36
    return [ join(base, subdir) for subdir in ('core', 'devices', 'utils')]
 
37
 
 
38
 
 
39
__all__ = ['get_includes'] + core.__all__
 
40