spack/var/spack/repos/builtin/packages/py-pybigwig/python3_curl.patch
Ricardo Silva cf754245fd py-pybigwig: fix build with python3, add numpy variant (#10444)
* added patch to correctly pick up non-system curl when building
  with Python 3
* added numpy variant
* add version 0.3.12
* update checksums to sha256
2019-01-31 14:50:10 -06:00

14 lines
491 B
Diff

diff --git a/setup.py b/setup.py
index ec31f9b..02c0320 100755
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ except:
defines.append(('NOCURL', None))
sys.stderr.write("Either libcurl isn't installed, it didn't come with curl-config, or curl-config isn't in your $PATH. pyBigWig will be installed without support for remote files.\n")
-foo = foo.strip().split()
+foo = foo.decode().strip().split()
for v in foo:
if(v[0:2] == "-L") :
additional_libs.append(v[2:])