python-M2Crypto/fix-build-python3.diff
Jan Matejek 8e1366d91b Accepting request 535455 from home:alarrosa:branches:devel:languages:python
- Update to 0.27.0
  * Fix licence: it is MIT, not BSD
  * At least minimal support of SNI in httpslib.
  * Small bugfixes and cleanups.
  * More effort to make build system more robust.
  * Restore m2.rsa_set_e() and m2.rsa_set_n().
  * Make sure that every exceptional return throws and exception and viceversa.
- Add patch fix-build-python3.diff to let it build with python3
- Add patch fix-openssl-include-path.diff to fix openssl include path
  (the code already includes the openssl/ part)
- Create a new package python-M2Crypto-doc for documentation since rpmlint
  was complaining around 75% of the package was documentation.

OBS-URL: https://build.opensuse.org/request/show/535455
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=45
2017-10-20 13:26:33 +00:00

17 lines
671 B
Diff

Index: M2Crypto-0.27.0/setup.py
===================================================================
--- M2Crypto-0.27.0.orig/setup.py
+++ M2Crypto-0.27.0/setup.py
@@ -48,7 +48,10 @@ def _get_additional_includes():
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
_, err = pid.communicate()
- err = [line.lstrip() for line in err.split('\n') if line and line[0] == ' ']
+ if sys.version_info[0] == 2:
+ err = [line.lstrip() for line in err.split('\n') if line and line[0] == ' ']
+ else:
+ err = [line.lstrip() for line in err.split(b'\n') if line and line[0] == b' ']
return err