comparison setup.py @ 40121:73fef626dae3

zstandard: vendor python-zstandard 0.10.1 This was just released. The upstream source distribution from PyPI was extracted. Unwanted files were removed. The clang-format ignore list was updated to reflect the new source of files. setup.py was updated to pass a new argument to python-zstandard's function for returning an Extension instance. Upstream had to change to use relative paths because Python 3.7's packaging doesn't seem to like absolute paths when defining sources, includes, etc. The default relative path calculation is relative to setup_zstd.py which is different from the directory of Mercurial's setup.py. The project contains a vendored copy of zstandard 1.3.6. The old version was 1.3.4. The API should be backwards compatible and nothing in core should need adjusted. However, there is a new "chunker" API that we may find useful in places where we want to emit compressed chunks of a fixed size. There are a pair of bug fixes in 0.10.0 with regards to compressobj() and decompressobj() when block flushing is used. I actually found these bugs when introducing these APIs in Mercurial! But existing Mercurial code is not affected because we don't perform block flushing. # no-check-commit because 3rd party code has different style guidelines Differential Revision: https://phab.mercurial-scm.org/D4911
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 08 Oct 2018 16:27:40 -0700
parents 138e2d6d3b53
children 3b275f549777
comparison
equal deleted inserted replaced
40120:89742f1fa6cb 40121:73fef626dae3
917 ['hgext/fsmonitor/pywatchman/bser.c']), 917 ['hgext/fsmonitor/pywatchman/bser.c']),
918 ] 918 ]
919 919
920 sys.path.insert(0, 'contrib/python-zstandard') 920 sys.path.insert(0, 'contrib/python-zstandard')
921 import setup_zstd 921 import setup_zstd
922 extmodules.append(setup_zstd.get_c_extension(name='mercurial.zstd')) 922 extmodules.append(setup_zstd.get_c_extension(
923 name='mercurial.zstd',
924 root=os.path.abspath(os.path.dirname(__file__))))
923 925
924 try: 926 try:
925 from distutils import cygwinccompiler 927 from distutils import cygwinccompiler
926 928
927 # the -mno-cygwin option has been deprecated for years 929 # the -mno-cygwin option has been deprecated for years