Ver código fonte

avoid defect python-msgpack releases, fixes #171, fixes #185

Thomas Waldmann 10 anos atrás
pai
commit
a67d4219c3
1 arquivos alterados com 10 adições e 1 exclusões
  1. 10 1
      setup.py

+ 10 - 1
setup.py

@@ -122,5 +122,14 @@ setup(
     scripts=['scripts/attic'],
     cmdclass=cmdclass,
     ext_modules=ext_modules,
-    install_requires=['msgpack-python']
+    # msgpack pure python data corruption in some versions.
+    # The compiled C-version of python-msgpack was not affected.
+    # So, IF you had a compiler installed AND you did not force the pure-python version,
+    # you likely were not affected by the issue.
+    # python-msgpack <=0.4.2 is OK, 0.4.5 is latest release, but bug was fixed in repo.
+    # Details see:
+    # https://github.com/jborg/attic/issues/171
+    # https://github.com/jborg/attic/issues/185
+    # https://github.com/msgpack/msgpack-python/issues/124
+    install_requires=['msgpack-python<=0.4.2,>0.4.5']
 )