for key, value in cfg_vars.items(): if type(value) == str: cfg_vars[key] = value.replace("-Wstrict-prototypes", "") try: with open('README.rst') as f: long_description = ''.join(f.readlines()) except (IOError, ImportError, RuntimeError): print('Could not generate long description.') long_description = '' USE_CYTHON = os.path.exists(os.path.join(PKG_DIR, 'pyroaring.pyx')) if USE_CYTHON: print('Building pyroaring from Cython sources.') from amalgamation import amalgamate amalgamate(PKG_DIR) from Cython.Build import cythonize ext = 'pyx' write_version(os.path.join(PKG_DIR, 'version.pxi'), { '__version__': VERSION, '__git_version__': git_version(), '__croaring_version__': chdir(git_tag, 'CRoaring'), '__croaring_git_version__': chdir(git_version, 'CRoaring'), }) else: print('Building pyroaring from C sources.') ext = 'cpp' if PLATFORM_WINDOWS: compile_args = [] else: