gantsign / ansible_role_pyenv Goto Github PK
View Code? Open in Web Editor NEWAnsible role for installing the Pyenv the version manager for Python
License: MIT License
Ansible role for installing the Pyenv the version manager for Python
License: MIT License
Hi,
Thanks for your work in this role, it's very usefull for setup my development machines.
I used it in Pop!_OS 22.04 LTS (it's based on Ubuntu 22). Since it is not listed in supported linux distributions I don´t know if you could help me with this.
Using the command pyenv shell to change to another python version gives me this pyenv: shell integration not enabled. Run 'pyenv init' for instructions.
I've seen that in the file .pyenvrc are the following lines (from master of this repo)
https://github.com/gantsign/ansible_role_pyenv/blob/master/templates/pyenvrc.j2
{{ ansible_managed | comment }}
if [ "${PYENV_ROOT:-}" != "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init --path)"
fi
fi
But when I execute the command pyenv init
the following is shown. Is there any reason for this code to be different?
# Load pyenv automatically by appending
# the following to
~/.bash_profile if it exists, otherwise ~/.profile (for login shells)
and ~/.bashrc (for interactive shells) :
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# Restart your shell for the changes to take effect.
I thinks since eval "$(pyenv init -)"
is not in any bash_profile/profile/bashrc pyenv shell
does not seem to work
Hi,
Thanks for your great roles,
I am trying to install pyenv while using your oh-my-zsh module as well. Unfortunately, both are modifying the .zshrc file. Which makes it impossible to use them both in the same playbook while keeping my playbook idempotent.
How would you solve this issue?
Thanks for your help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.