diff --git a/setup.py b/setup.py index 190722c..527f28e 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')] @@ -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') 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