Skip to content
Snippets Groups Projects
Commit f769f8e0 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'binary-preserve-assert' into 'master'

Preserve Python assert statements in binary build

Closes #432

See merge request !935
parents eaca1c6a e4af211d
No related branches found
No related tags found
1 merge request!935Preserve Python assert statements in binary build
......@@ -52,6 +52,7 @@ RUN find /usr/share/arkindex/*/management -name '*.py' -not -name '__init__.py'
RUN find /usr/share/arkindex /usr/share/ponos -type d -name tests | xargs rm -rf
# Compile all our python source code
# Do not use the -O or -OO python flags here as it removes assert statements (see backend#432)
RUN python -m nuitka \
--nofollow-imports \
--include-package=arkindex \
......@@ -59,7 +60,6 @@ RUN python -m nuitka \
--include-package=ponos \
--include-package=transkribus \
--show-progress \
--python-flag=-OO \
--lto \
--output-dir=/build \
arkindex/manage.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment