From a423e366780d92b9169f462243fda4e38400747d2a6bec9d820d9054426485f9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 8 Feb 2018 10:56:56 +0000 Subject: [PATCH] Accepting request 574138 from home:tbechtold:branches:devel:languages:python - Fix previous change and explicitly require python2 instead of python because python itself is also provided by python3. This fixes: ImportError: No module named _ssl when using python-cryptography in a python2 build environment OBS-URL: https://build.opensuse.org/request/show/574138 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=89 --- python-cryptography.changes | 9 +++++++++ python-cryptography.spec | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-cryptography.changes b/python-cryptography.changes index 64f5b75..6f76ef7 100644 --- a/python-cryptography.changes +++ b/python-cryptography.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Feb 8 10:54:03 UTC 2018 - tbechtold@suse.com + +- Fix previous change and explicitly require python2 instead of + python because python itself is also provided by python3. + This fixes: + ImportError: No module named _ssl + when using python-cryptography in a python2 build environment + ------------------------------------------------------------------- Sat Feb 3 13:02:06 UTC 2018 - tchvatal@suse.com diff --git a/python-cryptography.spec b/python-cryptography.spec index 8ec813c..e28dc8d 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -68,9 +68,9 @@ BuildRequires: %{python_module virtualenv} # /SECTION # python-base is not enough, we need the _ssl module %ifpython2 -Requires: python Requires: python-enum34 Requires: python-ipaddress +Requires: python2 %endif %ifpython3 Requires: python3