katyo / aubio-rs

Rust bindings for Aubio library
37 stars 7 forks source link

Fix python build version to py2 #10

Closed Polochon-street closed 3 years ago

Polochon-street commented 4 years ago

Hi,

I get a lot of these:

  File "/home/polochon/Documents/Programming/C/libbliss-project/bliss-rs/target/debug/build/aubio-lib-cafc28f3987ed349/out/source/0.5.0-git1f23a23d/waflib/Scripting.py", line 103
    except Errors.WafError ,e:
                           ^
SyntaxError: invalid syntax
)', /home/polochon/.cargo/git/checkouts/aubio-rs-ffe0d0ff37d67323/712a9aa/aubio-lib/build.rs:195:21

It's because this syntax is python2-only; making this explicit would help on some systems (such as archlinux)

Polochon-street commented 4 years ago

heh, it doesn't work with macOS. I'll try to think of something, but this is really annoying for modern linux distros (=where python2 is not the default)

katyo commented 4 years ago

ohh, the waf is here (and other stupid things on python...)