OXIESEC PANEL
- Current Dir:
/
/
usr
/
local
/
lib
/
python3.6
/
dist-packages
/
numpy
/
distutils
/
command
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
__init__.py
1.01 KB
10/28/2024 05:59:24 AM
rw-r--r--
📁
__pycache__
-
10/28/2024 05:59:26 AM
rwxr-xr-x
📄
autodist.py
3.63 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
bdist_rpm.py
709 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
build.py
1.35 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
build_clib.py
13.41 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
build_ext.py
25.71 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
build_py.py
1.12 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
build_scripts.py
1.63 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
build_src.py
30.45 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
config.py
20.14 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
config_compiler.py
4.27 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
develop.py
575 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
egg_info.py
921 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
install.py
3.01 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
install_clib.py
1.37 KB
10/28/2024 05:59:24 AM
rw-r--r--
📄
install_data.py
848 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
install_headers.py
919 bytes
10/28/2024 05:59:24 AM
rw-r--r--
📄
sdist.py
733 bytes
10/28/2024 05:59:24 AM
rw-r--r--
Editing: install_clib.py
Close
import os from distutils.core import Command from distutils.ccompiler import new_compiler from numpy.distutils.misc_util import get_cmd class install_clib(Command): description = "Command to install installable C libraries" user_options = [] def initialize_options(self): self.install_dir = None self.outfiles = [] def finalize_options(self): self.set_undefined_options('install', ('install_lib', 'install_dir')) def run (self): build_clib_cmd = get_cmd("build_clib") if not build_clib_cmd.build_clib: # can happen if the user specified `--skip-build` build_clib_cmd.finalize_options() build_dir = build_clib_cmd.build_clib # We need the compiler to get the library name -> filename association if not build_clib_cmd.compiler: compiler = new_compiler(compiler=None) compiler.customize(self.distribution) else: compiler = build_clib_cmd.compiler for l in self.distribution.installed_libraries: target_dir = os.path.join(self.install_dir, l.target_dir) name = compiler.library_filename(l.name) source = os.path.join(build_dir, name) self.mkpath(target_dir) self.outfiles.append(self.copy_file(source, target_dir)[0]) def get_outputs(self): return self.outfiles