/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/distutils/command
import os from distutils.command.install_headers import install_headers as old_install_headers class install_headers (old_install_headers): def run (self): headers = self.distribution.headers if not headers: return prefix = os.path.dirname(self.install_dir) for header in headers: if isinstance(header, tuple): # Kind of a hack, but I don't know where else to change this... if header[0] == 'numpy.core': header = ('numpy', header[1]) if os.path.splitext(header[1])[1] == '.inc': continue d = os.path.join(*([prefix]+header[0].split('.'))) header = header[1] else: d = self.install_dir self.mkpath(d) (out, _) = self.copy_file(header, d) self.outfiles.append(out)
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
autodist.py
Edit
bdist_rpm.py
Edit
build.py
Edit
build_clib.py
Edit
build_ext.py
Edit
build_py.py
Edit
build_scripts.py
Edit
build_src.py
Edit
config.py
Edit
config_compiler.py
Edit
develop.py
Edit
egg_info.py
Edit
install.py
Edit
install_clib.py
Edit
install_data.py
Edit
install_headers.py
Edit
sdist.py
Edit