Установка завивимостей
yum -y install epel-release
yum -y install libtool-ltdl-devel gcc libxslt-devel libxml2-devel xmlsec1-devel gcc-c++ mc python-devel python2-pip
Создал юзера rpmvenv
su - rpmvenv
mkdir /home/rpmvenv/venvs
cd venvs/
pip install -U pip
pip install virtualenv rpmvenv
virtualenv sentry
. sentry/bin/activate
pip install sentry
pip freeze > requirements.txt
QA_SKIP_BUILD_ROOT=1 rpmvenv sentry.json
Выдает ошибку
Traceback (most recent call last):
File "/home/rpmvenv/venvs/sentry/bin/rpmvenv", line 8, in <module>
sys.exit(main())
File "/home/rpmvenv/venvs/sentry/lib/python2.7/site-packages/rpmvenv/cli.py", line 142, in main
args['verbose'],
File "/home/rpmvenv/venvs/sentry/lib/python2.7/site-packages/rpmvenv/cli.py", line 77, in generate_rpm
pkg = rpmbuild.build(specfile=specfile, top=top, verbose=verbose)
File "/home/rpmvenv/venvs/sentry/lib/python2.7/site-packages/rpmvenv/rpmbuild.py", line 161, in build
quiet_popen(cmd)
File "/home/rpmvenv/venvs/sentry/lib/python2.7/site-packages/rpmvenv/rpmbuild.py", line 122, in quiet_popen
stderr=subprocess.PIPE,
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Содержимое sentry.json
{
"extensions": {
"enabled": [
"python_venv",
"blocks"
]
},
"core": {
"group": "Application/System",
"license": "MIT",
"name": "sentry",
"summary": "Sentry summary",
"version": "10.0.0"
},
"python_venv": {
"require_setup_py": false,
"name": "venv_sentry",
"path": "/home/rpmvenv/venvs/sentry",
"cmd": "virtualenv",
"flags": ["--always-copy"],
"requirements": ["requirements.txt"],
"use_pip_install": true,
"remove_pycache": true,
"strip_binaries": true
},
"blocks": {
"desc": [
"some long package description",
"each array element is a new line"
]
}
}
Содержимое домашней директории пользователя rpmvenv
tree -L 3
.
├── requirements.txt
└── venvs
├── requirements.txt
├── sentry
│ ├── bin
│ ├── include
│ ├── lib
│ ├── lib64
│ ├── LICENSE.txt
│ ├── pyvenv.cfg
│ ├── requirements.txt
│ ├── sentry.json
│ └── share
└── sentry.json