Skip to content

Commit

Permalink
Debian: Warnings from linitian addressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhayen committed Dec 25, 2021
1 parent 4d33279 commit b592b7c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion debian/control
Expand Up @@ -29,8 +29,9 @@ Build-Depends: debhelper (>= 9),
chrpath,
patchelf,
gdb | lldb
Rules-Requires-Root: no
Vcs-Git: https://github.com/Nuitka/Nuitka.git
Vcs-browser: https://github.com/Nuitka/Nuitka
Vcs-Browser: https://github.com/Nuitka/Nuitka
Homepage: https://nuitka.net
Standards-Version: 4.4.1
X-Python-Version: >= 2.6
Expand Down
4 changes: 4 additions & 0 deletions debian/source/lintian-overrides
Expand Up @@ -11,6 +11,10 @@ nuitka source: newer-standards-version
# the relatively ancient Python releases.
nuitka source: ancient-python-version-field

# Our include directory for C is named after the project.
# TODO: This doesn't work, no idea why.
# nuitka source: repeated-path-segment nuitka usr/lib/python3/dist-packages/nuitka/build/include/nuitka/

# We are really working with compat level up to what we say, but we
# want to build with distributions that don't have it.
package-needs-versioned-debhelper-build-depends
5 changes: 4 additions & 1 deletion nuitka/utils/Rest.py
Expand Up @@ -25,6 +25,8 @@
import os
import tempfile

from nuitka.utils.Execution import withEnvironmentVarOverriden

from .Execution import check_call
from .FileOperations import (
changeFilenameExtension,
Expand Down Expand Up @@ -90,7 +92,8 @@ def createPDF(document):
document += ".tmp"
putTextFileContents(filename=document, contents=new_contents)

check_call(["rst2pdf"] + args + [document])
with withEnvironmentVarOverriden("PYTHONWARNINGS", "ignore"):
check_call(["rst2pdf"] + args + [document])
finally:
if new_contents != old_contents:
deleteFile(document, must_exist=False)
Expand Down

0 comments on commit b592b7c

Please sign in to comment.