Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding Python manifest lib path to LD_LIBRARY_PATH before installing pip #49

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

Closed
wants to merge 2 commits into from
Closed
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
3 changes: 2 additions & 1 deletion installers/nix-setup-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi
echo "Create Python $PYTHON_FULL_VERSION folder"
mkdir -p $PYTHON_TOOLCACHE_VERSION_ARCH_PATH

echo "Copy Python binaries to hostedtoolcache folder"
echo "Copy Python binaries to $PYTHON_TOOLCACHE_VERSION_ARCH_PATH"
cp -R ./* $PYTHON_TOOLCACHE_VERSION_ARCH_PATH
rm $PYTHON_TOOLCACHE_VERSION_ARCH_PATH/setup.sh

Expand All @@ -49,6 +49,7 @@ fi
chmod +x ../python $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJORMINOR python

echo "Upgrading PIP..."
export LD_LIBRARY_PATH="$PYTHON_TOOLCACHE_VERSION_ARCH_PATH/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
./python -m ensurepip
./python -m pip install --ignore-installed pip

Expand Down