Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > numpy > random > _examples > cython >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
extending.pyx | File | 2290 bytes | April 17 2025 13:10:58. | |
extending_distributions.pyx | File | 3870 bytes | April 17 2025 13:10:58. | |
setup.py | File | 1401 bytes | April 17 2025 13:10:58. |
#!/usr/bin/env python3 """ Build the Cython demonstrations of low-level access to NumPy random Usage: python setup.py build_ext -i """ from os.path import dirname, join, abspath from setuptools import setup from setuptools.extension import Extension import numpy as np from Cython.Build import cythonize path = dirname(__file__) src_dir = join(dirname(path), '..', 'src') defs = [('NPY_NO_DEPRECATED_API', 0)] inc_path = np.get_include() # Add paths for npyrandom and npymath libraries: lib_path = [ abspath(join(np.get_include(), '..', '..', 'random', 'lib')), abspath(join(np.get_include(), '..', 'lib')) ] extending = Extension("extending", sources=[join('.', 'extending.pyx')], include_dirs=[ np.get_include(), join(path, '..', '..') ], define_macros=defs, ) distributions = Extension("extending_distributions", sources=[join('.', 'extending_distributions.pyx')], include_dirs=[inc_path], library_dirs=lib_path, libraries=['npyrandom', 'npymath'], define_macros=defs, ) extensions = [extending, distributions] setup( ext_modules=cythonize(extensions) )
SILENT KILLER Tool