Skip to content

Instantly share code, notes, and snippets.

@Steboss
Created August 12, 2020 15:45
Show Gist options
  • Save Steboss/6541a99326d7987e7b564fb0fe687386 to your computer and use it in GitHub Desktop.
Save Steboss/6541a99326d7987e7b564fb0fe687386 to your computer and use it in GitHub Desktop.
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
libraries = [ "fftw3","m"]
extra_compile_args = ['-O3', '-std=c99']
extra_link_args = ['-O3', '-std=c99']
cython_directives = {
'embedsignature': True,
'boundscheck': False,
'wraparound': False,
}
ext = Extension(
"stft.stft",
["stft.pyx",],
libraries=libraries,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
setup(
name='stft',
packages=['stft'],
version='0.0.1',
ext_modules=cythonize([ext, ],
compiler_directives=cython_directives,
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment