def get_extensions(): filenames = [ os.path.splitext(f)[0] for f in os.listdir("src/urh/cythonext") if f.endswith(EXT) ] extensions = [ Extension("urh.cythonext." + f, ["src/urh/cythonext/" + f + EXT], extra_compile_args=[OPEN_MP_FLAG], extra_link_args=[OPEN_MP_FLAG], language="c++") for f in filenames ] ExtensionHelper.USE_RELATIVE_PATHS = True extensions += ExtensionHelper.get_device_extensions(USE_CYTHON) if NO_NUMPY_WARNINGS_FLAG: for extension in extensions: extension.extra_compile_args.append(NO_NUMPY_WARNINGS_FLAG) if USE_CYTHON: from Cython.Build import cythonize extensions = cythonize(extensions, compiler_directives=COMPILER_DIRECTIVES, quiet=True) return extensions
def get_extensions(): filenames = [ os.path.splitext(f)[0] for f in os.listdir("src/urh/cythonext") if f.endswith(".pyx") ] extensions = [ Extension("urh.cythonext." + f, ["src/urh/cythonext/" + f + ".pyx"], extra_compile_args=[OPEN_MP_FLAG], extra_link_args=[OPEN_MP_FLAG], language="c++") for f in filenames ] ExtensionHelper.USE_RELATIVE_PATHS = True device_extensions, device_extras = ExtensionHelper.get_device_extensions_and_extras( ) extensions += device_extensions if NO_NUMPY_WARNINGS_FLAG: for extension in extensions: extension.extra_compile_args.append(NO_NUMPY_WARNINGS_FLAG) extensions = cythonize(extensions, compiler_directives=COMPILER_DIRECTIVES, quiet=True, compile_time_env=device_extras) return extensions
def get_extensions(): filenames = [os.path.splitext(f)[0] for f in os.listdir("src/urh/cythonext") if f.endswith(".pyx")] extensions = [Extension("urh.cythonext." + f, ["src/urh/cythonext/" + f + ".pyx"], extra_compile_args=[OPEN_MP_FLAG], extra_link_args=[OPEN_MP_FLAG], language="c++") for f in filenames] ExtensionHelper.USE_RELATIVE_PATHS = True device_extensions, device_extras = ExtensionHelper.get_device_extensions_and_extras() extensions += device_extensions if NO_NUMPY_WARNINGS_FLAG: for extension in extensions: extension.extra_compile_args.append(NO_NUMPY_WARNINGS_FLAG) extensions = cythonize(extensions, compiler_directives=COMPILER_DIRECTIVES, quiet=True, compile_time_env=device_extras) return extensions
def get_extensions(): filenames = [os.path.splitext(f)[0] for f in os.listdir("src/urh/cythonext") if f.endswith(EXT)] extensions = [Extension("urh.cythonext." + f, ["src/urh/cythonext/" + f + EXT], extra_compile_args=[OPEN_MP_FLAG], extra_link_args=[OPEN_MP_FLAG], language="c++") for f in filenames] ExtensionHelper.USE_RELATIVE_PATHS = True extensions += ExtensionHelper.get_device_extensions(USE_CYTHON) if NO_NUMPY_WARNINGS_FLAG: for extension in extensions: extension.extra_compile_args.append(NO_NUMPY_WARNINGS_FLAG) if USE_CYTHON: from Cython.Build import cythonize extensions = cythonize(extensions, compiler_directives=COMPILER_DIRECTIVES, quiet=True) return extensions
import pypandoc return pypandoc.convert('README.md', 'rst') except(IOError, ImportError, RuntimeError): return "" install_requires = ["numpy", "psutil", "pyzmq"] try: import PyQt5 except ImportError: install_requires.append("pyqt5") if sys.version_info < (3, 4): install_requires.append('enum34') ExtensionHelper.USE_RELATIVE_PATHS = True extensions = get_ext_modules() + ExtensionHelper.get_device_extensions(USE_CYTHON) if USE_CYTHON: from Cython.Build import cythonize extensions = cythonize(extensions, compiler_directives=COMPILER_DIRECTIVES) setup( name="urh", version=version.VERSION, description="Universal Radio Hacker: investigate wireless protocols like a boss", long_description=read_long_description(), author="Johannes Pohl", author_email="*****@*****.**", package_dir={"": "src"}, package_data=get_package_data(),
return "" install_requires = ["numpy", "psutil", "pyzmq"] if IS_RELEASE: install_requires.append("pyqt5") else: try: import PyQt5 except ImportError: install_requires.append("pyqt5") if sys.version_info < (3, 4): install_requires.append('enum34') ExtensionHelper.USE_RELATIVE_PATHS = True extensions = get_ext_modules() + ExtensionHelper.get_device_extensions(USE_CYTHON) if USE_CYTHON: from Cython.Build import cythonize extensions = cythonize(extensions, compiler_directives=COMPILER_DIRECTIVES) setup( name="urh", version=version.VERSION, description="Universal Radio Hacker: investigate wireless protocols like a boss", long_description=read_long_description(), author="Johannes Pohl", author_email="*****@*****.**", package_dir={"": "src"}, package_data=get_package_data(),