Skip to content

Document .bat always used in Conan subprocesses, .ps1 only if request - #4573

Merged
czoido merged 3 commits into
conan-io:develop2from
memsharded:docs/ps1-bat-subprocess
Oct 27, 2026
Merged

czoido merged 3 commits into
conan-io:develop2from
memsharded:docs/ps1-bat-subprocess

Conversation

@memsharded

Copy link
Copy Markdown
Member

Comment thread reference/tools/env/envvars.rst Outdated
``powershell.exe`` for versions up to 5.1, and ``pwsh`` for PowerShell versions starting
from 7. Note that setting ``tools.env.virtualenv:powershell`` to ``True`` or ``False`` is
deprecated as of Conan 2.11.0.
PowerShell ``.ps1`` scripts are also generated, in addition to the ``.bat`` ones, for the consumer

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not expect it, but they are also generated in macos next to my sh files. Should we describe that here too?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Does Mac has a powershell implementation?
If not, I'd leave it undocumented and fix it in Conan client, skipping generation in Mac.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better, lets remove .ps1 generation in Mac

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed, added Mac generation details

@czoido
czoido merged commit 6938dcf into conan-io:develop2 Oct 27, 2026
1 check passed
@memsharded
memsharded deleted the docs/ps1-bat-subprocess branch October 27, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants