Coder Social home page Coder Social logo

source-python's Introduction

Ansible role: source-python

test

An Ansible role to download and install Python from source. Supported distributions are the currently maintained releases of the Red Hat family and derivatives, and Ubuntu. At this time tests are run on Rocky Linux 9, Rocky Linux 8, CentOS Stream 9, CentOS Stream 8, CentOS 7, Fedora 37, Fedora 36, Fedora 35, Ubuntu 22.04, Ubuntu 20.04 and Ubuntu 18.04.

Requirements

None.

Role Variables

The variables that control the role behaviour are listed below with their respective defaults:

python_install_dir: /opt

The base directory of the installation

python_release: 3.10.0

The version of Python to be installed, in x.y.z form.

python_user: python

The owner of the installation.

python_group: python

The installation group.

python_src_dir: /sw/python

The directory where the source archive is downloaded, extracted and built.

python_force: false

When true installation is performed even if a bug fix release of the same minor version was already installed. Useful to repeat installations after something went wrong or to perform upgrades. Note that setting python_force to true breaks the role's idempotence.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - role: nmusatti.source_python
       vars:
         python_release: 3.10.0

Note the underscore in the name. Ansible Galaxy did not accept my submission otherwise.

License

GPLv3

Author Information

Nicola Musatti - https://github.com/nmusatti

source-python's People

Contributors

nmusatti avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

source-python's Issues

No SSL module - pip fails

By default, when I ran this playbook on CentOS 7, it worked nicely but resulted in an installation with broken pip. The reason was, openssl-devel has not been installed in the system, so ./configure has built Python without OpenSSL, and pip failed.

After yum install openssl-devel, I had a working installation with pip.

I suggest adding this package and its Debian counterpart to the "Install dependencies" step.

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.