From 8b9508b027740d6596f5458ebeff61199d03a240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Fri, 1 Jun 2018 09:04:20 +0200 Subject: [PATCH] Update virtualenv instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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ář --- doc/contributing.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/contributing.rst b/doc/contributing.rst index d729a29a..a89c386e 100644 --- a/doc/contributing.rst +++ b/doc/contributing.rst @@ -20,8 +20,6 @@ These packages will have to installed: * isomd5sum * jigdo * kobo - * kobo-rpmlib - * koji * krb5-devel * libcurl-devel * libmodulemd @@ -36,6 +34,7 @@ These packages will have to installed: * python2-multilib * python-productmd * repoview + * rpm-devel * syslinux * yum * 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. :: $ 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 _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 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 $ pip install -U pip $ 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.