mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-16 07:23:51 -05:00
Compare commits
6 Commits
c6bb0694bf
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
387f627464 | ||
|
|
4b3f5f8468 | ||
|
|
3057e1549b | ||
|
|
aa9b8e9a5a | ||
|
|
e8c8fd9b84 | ||
|
|
db299cada3 |
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -6,8 +6,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-24.04
|
||||
- ubuntu-22.04
|
||||
- ubuntu-20.04
|
||||
- macos-15
|
||||
- macos-14
|
||||
- macos-13
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2015 Yamashita, Yuu
|
||||
Copyright (c) 2025 Yamashita, Yuu
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
|
||||
@@ -28,6 +28,12 @@ From inside that directory you can:
|
||||
- Get the latest development release by running `git pull` to download the
|
||||
latest changes.
|
||||
|
||||
💡 **WSL note:** If you're using WSL, we recommend setting Git to use Unix-style line endings to prevent script execution errors:
|
||||
|
||||
```sh
|
||||
git config --global core.autocrlf input
|
||||
```
|
||||
|
||||
1. **Check out pyenv-virtualenv into plugin directory**
|
||||
|
||||
```bash
|
||||
@@ -82,7 +88,7 @@ brew install --HEAD pyenv-virtualenv
|
||||
```
|
||||
|
||||
After installation, you'll still need to do
|
||||
[Pyenv shell setup steps](https://github.com/pyenv/pyenv#basic-github-checkout)
|
||||
[Pyenv shell setup steps](https://github.com/pyenv/pyenv#b-set-up-your-shell-environment-for-pyenv)
|
||||
then add
|
||||
```sh
|
||||
eval "$(pyenv virtualenv-init -)"
|
||||
|
||||
@@ -22,10 +22,8 @@ fi
|
||||
|
||||
{ printf "\x1B[31;1m"
|
||||
echo
|
||||
echo "Failed to activate virtualenv."
|
||||
echo
|
||||
echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly."
|
||||
echo "Please restart current shell and try again."
|
||||
echo "\`pyenv activate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell."
|
||||
echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions."
|
||||
echo
|
||||
printf "\x1B[0m"
|
||||
} 1>&2
|
||||
|
||||
@@ -11,10 +11,8 @@ set -e
|
||||
|
||||
{ printf "\x1B[31;1m"
|
||||
echo
|
||||
echo "Failed to deactivate virtualenv."
|
||||
echo
|
||||
echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly."
|
||||
echo "Please restart current shell and try again."
|
||||
echo "\`pyenv deactivate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell."
|
||||
echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions."
|
||||
echo
|
||||
printf "\x1B[0m"
|
||||
} 1>&2
|
||||
|
||||
@@ -631,7 +631,8 @@ fi
|
||||
|
||||
## Create symlink in the `versions` directory for backward compatibility
|
||||
if [ -d "${VIRTUALENV_PATH}" ] && [ -n "${COMPAT_VIRTUALENV_PATH}" ]; then
|
||||
ln -fs "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
|
||||
# Overwrite an existing link, can happen if running with -f
|
||||
ln -fsn "${VIRTUALENV_PATH}" "${COMPAT_VIRTUALENV_PATH}"
|
||||
fi
|
||||
|
||||
if [ ! -e "${VIRTUALENV_PATH}/bin/pydoc" ]; then
|
||||
|
||||
Reference in New Issue
Block a user