summaryrefslogtreecommitdiff
path: root/src/pycryptopp/__init__.py
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-08-22 16:39:52 -0400
committerMicah Anderson <micah@riseup.net>2013-08-22 16:57:38 -0400
commit6d35b188b668c5007409e63a15e8340ed34dcfb8 (patch)
treec9dd25f3675b3b6f9b29b0786057f8a4d377bc2b /src/pycryptopp/__init__.py
parent86a1089dc6694f58d0f3356bdf9c8fe4061421f5 (diff)
parent5e60e0e3af85f22aa0afe8bf0ecf85619afacfeb (diff)
Merge tag 'upstream/0.6.0.12'
Upstream version 0.6.0.12
Diffstat (limited to 'src/pycryptopp/__init__.py')
-rw-r--r--src/pycryptopp/__init__.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/pycryptopp/__init__.py b/src/pycryptopp/__init__.py
new file mode 100644
index 0000000..6248289
--- /dev/null
+++ b/src/pycryptopp/__init__.py
@@ -0,0 +1,31 @@
+"""
+pycryptopp - Python wrappers for Crypto++
+"""
+
+# we import our glue .so here, and then other modules use the copy in
+# sys.modules.
+
+import _pycryptopp
+__doc__ = _pycryptopp.__doc__
+
+__version__ = "unknown"
+try:
+ import _version
+except ImportError:
+ # We're running in a tree that hasn't run "python ./setup.py
+ # update_version", and didn't come with a _version.py, so we don't know
+ # what our version is. This should not happen very often.
+ pass
+else:
+ __version__ = _version.__version__
+
+def _import_my_names(thismodule, prefix):
+ for name in dir(_pycryptopp):
+ if name.startswith(prefix):
+ myname = name[len(prefix):]
+ thismodule[myname] = getattr(_pycryptopp, name)
+
+import publickey, hash, cipher
+
+quiet_pyflakes=[__version__, publickey, hash, cipher, _pycryptopp, __doc__, _import_my_names]
+del quiet_pyflakes