瀏覽代碼

try to mock msgpack altogether to fix RTD again

it seems that msgpack is a hard depends in archive...
Antoine Beaupré 9 年之前
父節點
當前提交
a1dad8c9da
共有 1 個文件被更改,包括 3 次插入0 次删除
  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