Giter Site home page Giter Site logo

dylanninin / ansible-pyenv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dirn/ansible-pyenv

0.0 1.0 2.0 30 KB

Ansible role - pyenv

Home Page: https://galaxy.ansible.com/dylanninin/pyenv/

License: MIT License

Jinja 100.00%
ansible python pyenv

ansible-pyenv's Introduction

pyenv

Build Status

An Ansible role to install pyenv.

Requirements

This role works on OS X and Debian-based OSes.

Role Variables

Several variables are available to configure the role.

To set where pyenv will be installed:

pyenv_root: ~/.pyenv

To specify the name of the run commands file that will initialize pyenv:

pyenv_runcom: ~/.bash_profile

To specify which versions of Python to install:

pyenv_versions: []

To specify the default version of global Python:

pyenv_global_version: 3.5.3

To specify which mirror of Python src to download from:

pyenv_mirror: http://mirrors.sohu.com/python

To specify which mirror of Python packages to download from:

pyenv_pip_mirror: https://pypi.douban.com/simple

To specify alternative default versions of Python available inside your projects root:

pyenv_project_versions:
  - name: your_project_name
    version: 3.5.3
    root: /path/to/your/project
    # the required apt packages.
    apts:
      - graphviz
      - libgraphviz-dev
      - pkg-config

This is useful if you want a different version of Python than you use elsewhere.

Dependencies

None.

Example Playbook

- hosts: all
  roles:
    - role: dylannninin.pyenv
      pyenv_mirror: http://mirrors.sohu.com/python
      pyenv_pip_mirror: https://pypi.douban.com/simple
      pyenv_runcom: ~/.bash_profile
      pyenv_versions:
        - 2.7.9
        - 3.4.3
        - pypy-2.5.0
        - pypy3-2.4.0
      pyenv_global_version: 3.5.3
      pyenv_project_versions:
        - name: your_project_name
          version: 3.5.3
          root: /path/to/your/project
          apts:
            - graphviz
            - libgraphviz-dev
            - pkg-config

License

MIT

Author Information

This role was created by Andy Dirnberger.

And modified by Dylan

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.