Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wenv init should fail when get-pip.py fails #23

Open
milahu opened this issue Apr 16, 2024 · 1 comment
Open

wenv init should fail when get-pip.py fails #23

milahu opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@milahu
Copy link

milahu commented Apr 16, 2024

this should throw when get-pip.py fails

wenv/_core/env.py

        if self._p["offline"]:
            proc = subprocess.Popen(
                [
                    "wenv",
                    "python",
                    os.path.join(self._p["cache"], "get-pip.py"),
                    "--no-index",
                    "--find-links=%s" % self._p["packages"],
                ],
                env=envvar_dict,
            )
            proc.wait()

usually i do this with

args = [
  "wenv",
  "python",
  # ...
]

subprocess.run(
  args,
  check=True,
)
@s-m-e s-m-e added the bug Something isn't working label Apr 17, 2024
@s-m-e
Copy link
Member

s-m-e commented Apr 17, 2024

Thx, most certainly a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants