-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Labels
Description
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
ddspj23, Kamilkampfwagen-II, masbicudo and andrey-khropovni-balexand, micahellison, acelinkio, psxvoid, ddspj23 and 3 moremasbicudo