Skip to content

Commit

Permalink
fix: building debian packages with single binary application fails
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed Jul 18, 2024
1 parent 84f31ee commit 71915b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wheel2deb/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import os
import subprocess
from pathlib import Path
from typing import List, Tuple


def shell(args: List[str], cwd: Path | None = None) -> Tuple[str, int]:
env = os.environ.copy()
env.pop("LD_LIBRARY_PATH", None)
result = subprocess.run(
args, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
args, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=env
)
return result.stdout.decode("utf-8"), result.returncode

0 comments on commit 71915b6

Please sign in to comment.