return False # mingw is the compiler return os.name == 'nt' and 'mingw' not in ''.join(sys.argv) CFLAGS = ["-Wall"] if is_msvc(): CFLAGS.insert(0, "/EHsc") for arg, compile_arg in (("--sse2", "-msse2"), ("--sse3", "-msse3"),): if arg in sys.argv: sys.argv.pop(sys.argv.index(arg)) CFLAGS.insert(0, compile_arg) # Compiling Cython modules to C source code: this is the only way I found to # be able to build both Fortran and Cython extensions together # (this could be changed now as there is no longer Fortran extensions here...) cythonize_all('src') setup(name=LIBNAME, version=version, description=DESCRIPTION, long_description=LONG_DESCRIPTION, packages=get_subpackages(LIBNAME), package_data={LIBNAME: get_package_data(LIBNAME, ('.png', '.svg', '.mo', '.dcm', '.ui'))}, requires=["PyQt4 (>4.3)", "NumPy (>=1.3)", "SciPy (>=0.7)", "guidata (>=1.7.0)", "PythonQwt (>=0.3.0)", "PIL (>=1.1.6)"], scripts=SCRIPTS, ext_modules=[Extension(LIBNAME+'.histogram2d', [join('src', 'histogram2d.c')], include_dirs=[numpy.get_include()]), Extension(LIBNAME+'.mandelbrot', [join('src', 'mandelbrot.c')],
CFLAGS = ["-Wall"] if os.name == 'nt' and 'mingw' not in ''.join(sys.argv): CFLAGS.insert(0, "/EHsc") for arg, compile_arg in ( ("--sse2", "-msse2"), ("--sse3", "-msse3"), ): if arg in sys.argv: sys.argv.pop(sys.argv.index(arg)) CFLAGS.insert(0, compile_arg) # Compiling Cython modules to C source code: this is the only way I found to # be able to build both Fortran and Cython extensions together # (this could be changed now as there is no longer Fortran extensions here...) cythonize_all('src') setup(name=LIBNAME, version=version, download_url='http://%s.googlecode.com/files/%s-%s.zip' % (LIBNAME, LIBNAME, version), description=DESCRIPTION, long_description=LONG_DESCRIPTION, packages=get_subpackages(LIBNAME), package_data={ LIBNAME: get_package_data(LIBNAME, ('.png', '.svg', '.mo', '.dcm', '.ui')) }, requires=[ "PyQt4 (>4.3)", "NumPy (>=1.3)", "SciPy (>=0.7)", "guidata (>=1.6.0)", "PIL (>=1.1.6)"
CFLAGS = ["-Wall"] if is_msvc(): CFLAGS.insert(0, "/EHsc") for arg, compile_arg in ( ("--sse2", "-msse2"), ("--sse3", "-msse3"), ): if arg in sys.argv: sys.argv.pop(sys.argv.index(arg)) CFLAGS.insert(0, compile_arg) # Compiling Cython modules to C source code: this is the only way I found to # be able to build both Fortran and Cython extensions together # (this could be changed now as there is no longer Fortran extensions here...) cythonize_all("src") setup( name=LIBNAME, version="4.3.1", # Update here *AND* in __init__.py! # (Until setup.py has been fully retrofitted, this manual sync is mandatory) description=__description__, long_description=LONG_DESCRIPTION, packages=get_subpackages(LIBNAME), package_data={ LIBNAME: get_package_data(LIBNAME, (".png", ".svg", ".mo", ".dcm", ".ui")) }, data_files=[(r"Doc", [CHM_DOC])] if CHM_DOC else [], install_requires=[ "NumPy>=1.3", "SciPy>=0.7",