Update virtualenv instructions

* Koji can now be installed from PyPI and it will also pull in rpm. This
  needs rpm-devel install on the system. This means we can get kobo from
  PyPI as well.
* Using print function should make it work for python 3 virtualenvs.
* Newer we need kobo in 0.6.0 at least, but newer is fine too.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-06-01 09:04:20 +02:00
parent 102fec83b3
commit 8b9508b027

View File

@ -20,8 +20,6 @@ These packages will have to installed:
* isomd5sum * isomd5sum
* jigdo * jigdo
* kobo * kobo
* kobo-rpmlib
* koji
* krb5-devel * krb5-devel
* libcurl-devel * libcurl-devel
* libmodulemd * libmodulemd
@ -36,6 +34,7 @@ These packages will have to installed:
* python2-multilib * python2-multilib
* python-productmd * python-productmd
* repoview * repoview
* rpm-devel
* syslinux * syslinux
* yum * yum
* yum-utils * yum-utils
@ -57,11 +56,11 @@ preferably from PyPI or from tarball. You will still need to install all of the
packages above as they are used by calling an executable. :: packages above as they are used by calling an executable. ::
$ mkvirtualenv pungienv $ mkvirtualenv pungienv
$ for pkg in createrepo gi koji libcomps pdc_client pykickstart rpm rpmUtils selinux urlgrabber yum; do ln -vs "$(deactivate && python -c 'import os, '$pkg'; print os.path.dirname('$pkg'.__file__)')" "$(virtualenvwrapper_get_site_packages_dir)"; done $ for pkg in createrepo gi libcomps pdc_client pykickstart rpmUtils selinux urlgrabber yum; do ln -vs "$(deactivate && python -c 'import os, '$pkg'; print(os.path.dirname('$pkg'.__file__))')" "$(virtualenvwrapper_get_site_packages_dir)"; done
$ for pkg in _deltarpm krbV _selinux deltarpm sqlitecachec _sqlitecache; do ln -vs "$(deactivate && python -c 'import os, '$pkg'; print '$pkg'.__file__')" "$(virtualenvwrapper_get_site_packages_dir)"; done $ for pkg in _deltarpm krbV _selinux deltarpm sqlitecachec _sqlitecache; do ln -vs "$(deactivate && python -c 'import os, '$pkg'; print('$pkg'.__file__)')" "$(virtualenvwrapper_get_site_packages_dir)"; done
$ pip install -U pip $ pip install -U pip
$ PYCURL_SSL_LIBRARY=nss pip install pycurl --no-binary :all: $ PYCURL_SSL_LIBRARY=nss pip install pycurl --no-binary :all:
$ pip install beanbag jsonschema kobo==0.6.0 lockfile lxml mock nose nose-cov productmd pyopenssl python-multilib requests requests-kerberos setuptools sphinx ordered_set $ pip install beanbag jsonschema 'kobo>=0.6.0' lockfile lxml mock nose nose-cov productmd pyopenssl python-multilib requests requests-kerberos setuptools sphinx ordered_set koji
Now you should be able to run all existing tests. Now you should be able to run all existing tests.