当前位置: 首页 > news >正文

x86_64 ansible 源码编译安装

源码

GitHub - ansible/ansible: Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

编译安装过程记录

依赖

yeqiang@yeqiang-MS-7B23:~/Downloads/src/ansible$ python3 -m pip install -v -r requirements.txt 
Using pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting jinja2>=3.0.0Using cached https://pypi.tuna.tsinghua.edu.cn/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Requirement already satisfied: PyYAML>=5.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7)) (5.4.1)
Requirement already satisfied: cryptography in /home/yeqiang/.local/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (36.0.2)
Collecting packagingUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/ab/c3/57f0601a2d4fe15de7a553c00adbc901425661bf048f2a22dfc500caf121/packaging-23.1-py3-none-any.whl (48 kB)
Collecting resolvelib<1.1.0,>=0.5.3Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/fc/e9ccf0521607bcd244aa0b3fbd574f71b65e9ce6a112c83af988bbbe2e23/resolvelib-1.0.1-py2.py3-none-any.whl (17 kB)
Collecting MarkupSafe>=2.0Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/b3/d9ed2c0971e1435b8a62354b18d3060b66c8cb1d368399ec0b9baa7c0ee5/MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Requirement already satisfied: cffi>=1.12 in /home/yeqiang/.local/lib/python3.10/site-packages (from cryptography->-r requirements.txt (line 8)) (1.15.1)
Requirement already satisfied: pycparser in /home/yeqiang/.local/lib/python3.10/site-packages (from cffi>=1.12->cryptography->-r requirements.txt (line 8)) (2.21)
Installing collected packages: resolvelib, packaging, MarkupSafe, jinja2
Successfully installed MarkupSafe-2.1.3 jinja2-3.1.2 packaging-23.1 resolvelib-1.0.1

构建

yeqiang@yeqiang-MS-7B23:~/Downloads/src/ansible$ python3 setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/ansible
...copying test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py -> build/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules
copying test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py -> build/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules
copying test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/utils.py -> build/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules
creating build/lib/ansible_test/_util/controller/sanity/yamllint/config
copying test/lib/ansible_test/_util/controller/sanity/yamllint/config/default.yml -> build/lib/ansible_test/_util/controller/sanity/yamllint/config
copying test/lib/ansible_test/_util/controller/sanity/yamllint/config/modules.yml -> build/lib/ansible_test/_util/controller/sanity/yamllint/config
copying test/lib/ansible_test/_util/controller/sanity/yamllint/config/plugins.yml -> build/lib/ansible_test/_util/controller/sanity/yamllint/config
creating build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-aws.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-azure.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-cloudscale.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-cs.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-gcp.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-hcloud.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-opennebula.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-openshift.kubeconfig.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-scaleway.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-vcenter.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/cloud-config-vultr.ini.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/inventory.networking.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/inventory.winrm.template -> build/lib/ansible_test/config
copying test/lib/ansible_test/config/config.yml -> build/lib/ansible_test/config
running build_scripts
creating build/scripts-3.10
copying and adjusting bin/ansible-test -> build/scripts-3.10
changing mode of build/scripts-3.10/ansible-test from 664 to 775

安装

yeqiang@yeqiang-MS-7B23:~/Downloads/src/ansible$ sudo python3 setup.py install
...byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/integration-aliases/yaml_to_json.py to yaml_to_json.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate.py to validate.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/__init__.py to __init__.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/main.py to main.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py to module_args.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py to schema.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/validate-modules/validate_modules/utils.py to utils.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/yamllint/yamllinter.py to yamllinter.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/pylint/plugins/deprecated.py to deprecated.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/pylint/plugins/string_format.py to string_format.cpython-310.pyc
byte-compiling build/bdist.linux-x86_64/egg/ansible_test/_util/controller/sanity/pylint/plugins/unwanted.py to unwanted.cpython-310.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.10/ansible-test -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/ansible-test to 775
copying lib/ansible_core.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lib/ansible_core.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating 'dist/ansible_core-2.16.0.dev0-py3.10.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing ansible_core-2.16.0.dev0-py3.10.egg
creating /usr/local/lib/python3.10/dist-packages/ansible_core-2.16.0.dev0-py3.10.egg
Extracting ansible_core-2.16.0.dev0-py3.10.egg to /usr/local/lib/python3.10/dist-packages
Adding ansible-core 2.16.0.dev0 to easy-install.pth file
Installing ansible-test script to /usr/local/bin
Installing ansible script to /usr/local/bin
Installing ansible-config script to /usr/local/bin
Installing ansible-connection script to /usr/local/bin
Installing ansible-console script to /usr/local/bin
Installing ansible-doc script to /usr/local/bin
Installing ansible-galaxy script to /usr/local/bin
Installing ansible-inventory script to /usr/local/bin
Installing ansible-playbook script to /usr/local/bin
Installing ansible-pull script to /usr/local/bin
Installing ansible-vault script to /usr/local/binInstalled /usr/local/lib/python3.10/dist-packages/ansible_core-2.16.0.dev0-py3.10.egg
Processing dependencies for ansible-core==2.16.0.dev0
Searching for resolvelib<1.1.0,>=0.5.3
Reading https://pypi.org/simple/resolvelib/
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future releasewarnings.warn(
Downloading https://files.pythonhosted.org/packages/d2/fc/e9ccf0521607bcd244aa0b3fbd574f71b65e9ce6a112c83af988bbbe2e23/resolvelib-1.0.1-py2.py3-none-any.whl#sha256=d2da45d1a8dfee81bdd591647783e340ef3bcb104b54c383f70d422ef5cc7dbf
Best match: resolvelib 1.0.1
Processing resolvelib-1.0.1-py2.py3-none-any.whl
Installing resolvelib-1.0.1-py2.py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
Adding resolvelib 1.0.1 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/resolvelib-1.0.1-py3.10.egg
Searching for packaging
Reading https://pypi.org/simple/packaging/
Downloading https://files.pythonhosted.org/packages/ab/c3/57f0601a2d4fe15de7a553c00adbc901425661bf048f2a22dfc500caf121/packaging-23.1-py3-none-any.whl#sha256=994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61
Best match: packaging 23.1
Processing packaging-23.1-py3-none-any.whl
Installing packaging-23.1-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
Adding packaging 23.1 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/packaging-23.1-py3.10.egg
Searching for jinja2>=3.0.0
Reading https://pypi.org/simple/jinja2/
Downloading https://files.pythonhosted.org/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl#sha256=6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61
Best match: Jinja2 3.1.2
Processing Jinja2-3.1.2-py3-none-any.whl
Installing Jinja2-3.1.2-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
Adding Jinja2 3.1.2 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/Jinja2-3.1.2-py3.10.egg
Searching for MarkupSafe>=2.0
Reading https://pypi.org/simple/MarkupSafe/
Downloading https://files.pythonhosted.org/packages/12/b3/d9ed2c0971e1435b8a62354b18d3060b66c8cb1d368399ec0b9baa7c0ee5/MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52
Best match: MarkupSafe 2.1.3
Processing MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Installing MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
Adding MarkupSafe 2.1.3 to easy-install.pth fileInstalled /usr/local/lib/python3.10/dist-packages/MarkupSafe-2.1.3-py3.10-linux-x86_64.egg
Searching for cryptography==3.4.8
Best match: cryptography 3.4.8
Adding cryptography 3.4.8 to easy-install.pth fileUsing /usr/lib/python3/dist-packages
Searching for PyYAML==5.4.1
Best match: PyYAML 5.4.1
Adding PyYAML 5.4.1 to easy-install.pth fileUsing /usr/lib/python3/dist-packages
Finished processing dependencies for ansible-core==2.16.0.dev0

http://www.lryc.cn/news/151251.html

相关文章:

  • 数据结构学习系列之顺序表的两种插入方式
  • Matlab/Python教程系列 | 根据目录下的已有图片制作视频(动画)
  • Pyecharts数据可视化(一)
  • stable diffusion实践操作-提示词-图片结构
  • 程序员自由创业周记#2:前期准备
  • Elasticsearch实战(四):Springboot实现Elasticsearch指标聚合与下钻分析open-API
  • Opencv图像暗通道调优
  • 怎样来实现流量削峰方案
  • git status搜索.c和.h后缀及git新建分支
  • 【配置环境】Visual Studio 配置 OpenCV
  • java.sql.SQLException: com.mysql.cj.jdbc.Driver
  • React笔记(四)类组件(2)
  • 点云从入门到精通技术详解100篇-点云信息编码
  • Python爬虫解析网页内容
  • 从零开始学习Python爬虫技术,并应用于市场竞争情报收集
  • SpringCloudGateway集成SpringDoc CORS问题
  • 国际版阿里云/腾讯云:弹性高性能计算E-HPC入门概述
  • 【博客702】shell flock实现单例模式执行任务
  • 数据分析基础-数据可视化07-用数据分析讲故事
  • 策略模式简介
  • 学术加油站|基于端到端性能的学习型基数估计器综合测评
  • MySQL 使用规范 —— 如何建好字段和索引
  • Relation Extraction as Open-book Examination: Retrieval-enhanced Prompt Tuning
  • FFmpeg报错:Connection to tcp://XXX?timeout=XXX failed: Connection timed out
  • iOS开发Swift-7-得分,问题序号,约束对象,提示框,类方法与静态方法-趣味问答App
  • AUTOSAR规范与ECU软件开发(实践篇)7.10MCAL模块配置方法及常用接口函数介绍之Base与Resource的配置
  • Android11编译第二弹:USB连接MTP模式+USB调试+USB信任
  • Unity ShaderGraph教程——基础shader
  • 第 3 章 栈和队列(单链队列)
  • 【DFS】1254. 统计封闭岛屿的数目