Skip to content

feature: shims as .exe files #352

@db4

Description

@db4

Current implementation of shims as .bat files breaks some existing use cases. E.g. CMake wrapper for conan contains the following code fragment to call Conan:

        execute_process(COMMAND ${CONAN_CMD} ${conan_args}
                        RESULT_VARIABLE return_code
                        OUTPUT_VARIABLE conan_output
                        ERROR_VARIABLE conan_output
                        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

normally CONAN_CMD points to <python dir>\Scripts\conan.exe, but with pyenv-win it turns to shims\conan.bat, so execute_process() fails (it doesn't use cmd.exe to run commands)

Maybe pyenv-win could use Chocolatey Shim Generator to work around this? Although it's not OSS, they're ready to grant a license:

I want to use shimgen outside of Chocolatey.

If your project is FOSS, please contact us for a grant of a free license to do so

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions