Skip to content

Commit

Permalink
Update version number to 1.3.4 and improve cmd handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Mar 25, 2024
1 parent 17054b2 commit 93f9fc4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ This supplemental licensing supersedes any language in the generic license attac
none of this supplemental license applies to you.

# Releases
* 1.3.3 - Isolation for pip too so that it doesn't bind to the parent pip.
* 1.3.4 - Isolation for pip too so that it doesn't bind to the parent pip.
* 1.3.1 - New `full_isolation` mode to allow packages installed on other parts of the system from binding.
* 1.3.1 - Update readme.
* 1.3.0 - Marks a new interface.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"setuptools",
]
# Change this with the version number bump.
version = "1.3.3"
version = "1.3.4"

[tool.ruff]
line-length = 200
Expand Down
22 changes: 16 additions & 6 deletions src/isolated_environment/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,24 @@ def run(self, cmd_list: list[str], **kwargs) -> subprocess.CompletedProcess:
text = kwargs.get("text", universal_newlines)
if "text" in kwargs:
del kwargs["text"]
if cmd_list and (
cmd_list[0] == "python"
or cmd_list[0] == "python.exe"
or cmd_list[0] == "python3"
if (
cmd_list
and self.full_isolation
and (
cmd_list[0] == "python"
or cmd_list[0] == "python.exe"
or cmd_list[0] == "python3"
)
):
cmd_list[0] = str(act_env.python)
if cmd_list and (
cmd_list[0] == "pip" or cmd_list[0] == "pip.exe" or cmd_list[0] == "pip3"
if (
cmd_list
and self.full_isolation
and (
cmd_list[0] == "pip"
or cmd_list[0] == "pip.exe"
or cmd_list[0] == "pip3"
)
):
cmd_list[0] = str(act_env.pip)
cp = subprocess.run(
Expand Down

0 comments on commit 93f9fc4

Please sign in to comment.