Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Missing command env on Windows #4

Open
jdegenstein opened this issue Feb 6, 2023 · 4 comments
Open

Missing command env on Windows #4

jdegenstein opened this issue Feb 6, 2023 · 4 comments

Comments

@jdegenstein
Copy link

I am not sure what is the purpose of env -u CONDA_PREFIX_1 in the following snippet that fails on Windows. It does not match the other commands in vscode-cadquery-viewer/package.json.

"cadquery": {
    "pip": [
        "env -u CONDA_PREFIX_1 {python} -m pip install git+https://github.com/cadquery/cadquery.git"
@bernhard-42
Copy link
Owner

Good catch, this is necessary to install cadquery via pip and works under Linux and Mac:
CadQuery/cadquery#1236 (comment)
You probably can remove that on Windows. If it then installs CadQuery 0.0.0, you need some way to unset the CONDA_PREFIX_1 variable before installation with pip works

@jdegenstein
Copy link
Author

Can this command be automatically customized for each platform?

@bernhard-42
Copy link
Owner

do you know how it would look like under windows?
I can introduce another template var {unset_env_var} and set it accordingly on unix / windows. But would need to know how it works under windows

@bernhard-42
Copy link
Owner

@jdegenstein This should be solved in the meantime, right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants