Browse Source

try to mock msgpack altogether to fix RTD again

it seems that msgpack is a hard depends in archive...
Antoine Beaupré 9 years ago
parent
commit
a1dad8c9da
1 changed files with 3 additions and 0 deletions
  1. 3 0
      borg/archive.py

+ 3 - 0
borg/archive.py

@@ -19,6 +19,9 @@ if have_cython():
     from .chunker import Chunker
     from .hashindex import ChunkIndex
     import msgpack
+else:
+    import mock
+    msgpack = mock.Mock()
 
 ITEMS_BUFFER = 1024 * 1024