Code Monkey home page Code Monkey logo

ansible_role_pyenv's People

Contributors

freemanjp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

g2g

ansible_role_pyenv's Issues

Pyenv shell command does not seem to work

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

Not idempotent when used with gantsign.oh-my-zsh

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.