Skip to content

fix: do not delete all architectures #9

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

Open
wants to merge 1 commit into
base: freethreaded
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions installers/nix-setup-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ echo "Check if Python hostedtoolcache folder exist..."
if [ ! -d $PYTHON_TOOLCACHE_PATH ]; then
echo "Creating Python hostedtoolcache folder..."
mkdir -p $PYTHON_TOOLCACHE_PATH
elif [ -d $PYTHON_TOOLCACHE_VERSION_PATH ]; then
echo "Deleting Python $PYTHON_FULL_VERSION"
rm -rf $PYTHON_TOOLCACHE_VERSION_PATH
elif [ -d $PYTHON_TOOLCACHE_VERSION_ARCH_PATH ]; then
echo "Deleting Python $PYTHON_FULL_VERSION $ARCH"
rm -rf $PYTHON_TOOLCACHE_VERSION_ARCH_PATH
if [ -f $PYTHON_TOOLCACHE_VERSION_PATH/$ARCH.complete ]; then
rm -f $PYTHON_TOOLCACHE_VERSION_PATH/$ARCH.complete
fi
fi

echo "Create Python $PYTHON_FULL_VERSION folder"
Expand Down