From 3736f3e15266d4783d57d65182daf274c2d06fa7 Mon Sep 17 00:00:00 2001 From: Kyle Pittman Date: Tue, 12 May 2015 17:10:24 -0500 Subject: [PATCH 1/3] Add -Wno-error=format-security to dirac in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 190722c..d0fc04f 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def get_action(): def get_dirac(): link_args = ['-framework', 'Carbon'] if is_mac else [] - compile_args = [] if is_windows else ['-Wno-unused'] + compile_args = [] if is_windows else ['-Wno-unused', '-Wno-error=format-security'] pydirac = os.path.join('external', 'pydirac225') lib_sources = [os.path.join(pydirac, 'diracmodule.cpp'), os.path.join(pydirac, 'source', 'Dirac_LE.cpp')] From 13df0bf95bd5b751a655d726a400fe3c1f8b013a Mon Sep 17 00:00:00 2001 From: Kyle Pittman Date: Tue, 12 May 2015 17:12:46 -0500 Subject: [PATCH 2/3] Add -Wno-error=format-security to get_soundtouch in setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d0fc04f..527f28e 100644 --- a/setup.py +++ b/setup.py @@ -77,10 +77,10 @@ def get_soundtouch(): if is_linux: sources += ['cpu_detect_x86_gcc.cpp'] - extra_compile_args = ['-O3', '-Wno-unused'] + extra_compile_args = ['-O3', '-Wno-unused', '-Wno-error=format-security'] elif is_mac: sources += ['cpu_detect_x86_gcc.cpp'] - extra_compile_args = ['-O3', '-Wno-unused'] + extra_compile_args = ['-O3', '-Wno-unused', '-Wno-error=format-security'] elif is_windows: sources += ['cpu_detect_x86_win.cpp', '3dnow_win.cpp'] pysoundtouch = os.path.join('external', 'pysoundtouch14', 'libsoundtouch') From 3526d5ba16c3a8fa1c369d40d334fa7689a71b5d Mon Sep 17 00:00:00 2001 From: Kyle Pittman Date: Wed, 13 May 2015 19:06:13 -0500 Subject: [PATCH 3/3] Add import for logging in action.py --- src/echonest/remix/action.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/echonest/remix/action.py b/src/echonest/remix/action.py index 3cf1e0a..93fa599 100644 --- a/src/echonest/remix/action.py +++ b/src/echonest/remix/action.py @@ -8,6 +8,7 @@ import os import dirac import sys +import logging from numpy import zeros, multiply, float32, mean, copy from math import atan, pi from echonest.remix.audio import assemble, AudioData