From 2a6b041a4ea0c96e50fc5ff342beac6ee685cf3d Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Fri, 3 Jun 2016 12:02:01 +0200 Subject: [PATCH] Update setup.py --- MANIFEST.in | 2 ++ setup.py | 36 ++++++++++++++++++------------------ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 179bc6e..0a97634 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,6 @@ include CONTRIBUTING.md +include common/*.c +include common/*.h include dec/*.c include dec/*.h include dec/Makefile diff --git a/setup.py b/setup.py index 4540348..5f13e6f 100644 --- a/setup.py +++ b/setup.py @@ -121,6 +121,11 @@ class BuildExt(build_ext): brotli = Extension("brotli", sources=[ "python/brotlimodule.cc", + "common/dictionary.c", + "dec/bit_reader.c", + "dec/decode.c", + "dec/huffman.c", + "dec/state.c", "enc/backward_references.cc", "enc/block_splitter.cc", "enc/brotli_bit_stream.cc", @@ -134,13 +139,21 @@ brotli = Extension("brotli", "enc/static_dict.cc", "enc/streams.cc", "enc/utf8_util.cc", - "dec/bit_reader.c", - "dec/decode.c", - "dec/dictionary.c", - "dec/huffman.c", - "dec/state.c", ], depends=[ + "common/constants.h", + "common/dictionary.h", + "common/port.h", + "common/types.h", + "dec/bit_reader.h", + "dec/context.h", + "dec/decode.h", + "dec/huffman.h", + "dec/port.h", + "dec/prefix.h", + "dec/state.h", + "dec/streams.h", + "dec/transform.h", "enc/backward_references.h", "enc/bit_cost.h", "enc/block_splitter.h", @@ -150,7 +163,6 @@ brotli = Extension("brotli", "enc/compress_fragment.h", "enc/compress_fragment_tw_pass.h" "enc/context.h", - "enc/dictionary.h", "enc/dictionary_hash.h", "enc/encode.h", "enc/entropy_encode.h", @@ -168,20 +180,8 @@ brotli = Extension("brotli", "enc/static_dict_lut.h", "enc/streams.h", "enc/transform.h", - "enc/types.h", "enc/utf8_util.h", "enc/write_bits.h", - "dec/bit_reader.h", - "dec/context.h", - "dec/decode.h", - "dec/dictionary.h", - "dec/huffman.h", - "dec/prefix.h", - "dec/port.h", - "dec/streams.h", - "dec/transform.h", - "dec/types.h", - "dec/state.h", ], language="c++", )