Bläddra i källkod

try to mock msgpack altogether to fix RTD again

it seems that msgpack is a hard depends in archive...
Antoine Beaupré 9 år sedan
förälder
incheckning
a1dad8c9da
1 ändrade filer med 3 tillägg och 0 borttagningar
  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