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

Missing activation scripts on windows #1

Closed
h-vetinari opened this issue Jan 9, 2025 · 0 comments · Fixed by #2
Closed

Missing activation scripts on windows #1

h-vetinari opened this issue Jan 9, 2025 · 0 comments · Fixed by #2

Comments

@h-vetinari
Copy link
Member

Copying my comment post-merge from the staged-recipes PR

if not exist %PREFIX%\etc\conda\%%F.d MKDIR %PREFIX%\etc\conda\%%F.d
if errorlevel 1 exit 1
sed "s/@PY_LIMITED_API/%PY_LIMITED_API%/g" %RECIPE_DIR%\scripts\%%F.bat >> %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat
:: We also copy .sh scripts to be able to use them
:: with POSIX CLI on Windows.
sed "s/@PY_LIMITED_API/%PY_LIMITED_API%/g" %RECIPE_DIR%\scripts\%%F.sh >> %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.sh
if errorlevel 1 exit 1

I think you forgot to create the bat versions of the activation scripts. [CI] didn't fail here because [the call on line 6] didn't have an if errorlevel.

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 a pull request may close this issue.

1 participant