Browse Source

setup.py: Make source files be in a deterministic order

To make the package build reproducibly, sort the source files in a
deterministic order instead of just globbing them.

Patch originally from
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842628>.
tags/v0.4.4
Reiner Herrmann 7 years ago
committed by Kunal Mehta
parent
commit
c9cd504f14
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      setup.py

+ 1
- 1
setup.py View File

@@ -75,7 +75,7 @@ if fallback:
# Project-specific part begins here:

tokenizer = Extension("mwparserfromhell.parser._tokenizer",
sources=glob("mwparserfromhell/parser/ctokenizer/*.c"),
sources=sorted(glob("mwparserfromhell/parser/ctokenizer/*.c")),
depends=glob("mwparserfromhell/parser/ctokenizer/*.h"))

setup(


Loading…
Cancel
Save