Skip to content

Commit

Permalink
maybe windows will like this
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Feb 26, 2024
1 parent 44cc435 commit 02a4695
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hatch-dependency-coversion/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

from sys import executable
from pathlib import Path
from os import linesep
import subprocess
Expand All @@ -25,7 +26,7 @@ def build_wheel(proj_path: Path, output_path: Path | None = None) -> Path:
output = output_path or proj_path / "dist"
output.mkdir()
cmd = [
"python",
executable,
"-m",
"build",
"--no-isolation",
Expand All @@ -34,7 +35,9 @@ def build_wheel(proj_path: Path, output_path: Path | None = None) -> Path:
str(output),
str(proj_path),
]
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
proc = subprocess.Popen(
cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True
)
stdout, stderr = proc.communicate()
stdout_content = stdout.decode("utf-8")
stderr_content = stderr.decode("utf-8")
Expand Down

0 comments on commit 02a4695

Please sign in to comment.