/
usr
/
lib64
/
python2.6
/
site-packages
/
numpy
/
distutils
/
command
/
/usr/lib64/python2.6/site-packages/numpy/distutils/command
mkdir
upload
Name
Size
Mode
Actions
autodist.py
846
0644
edit
dl
rm
autodist.pyc
1211
0644
edit
dl
rm
autodist.pyo
1211
0644
edit
dl
rm
bdist_rpm.py
708
0644
edit
dl
rm
bdist_rpm.pyc
1058
0644
edit
dl
rm
bdist_rpm.pyo
1058
0644
edit
dl
rm
build.py
1255
0644
edit
dl
rm
build.pyc
2224
0644
edit
dl
rm
build.pyo
2224
0644
edit
dl
rm
build_clib.py
11430
0644
edit
dl
rm
build_clib.pyc
8220
0644
edit
dl
rm
build_clib.pyo
8220
0644
edit
dl
rm
build_ext.py
21295
0644
edit
dl
rm
build_ext.pyc
13390
0644
edit
dl
rm
build_ext.pyo
13390
0644
edit
dl
rm
build_py.py
887
0644
edit
dl
rm
build_py.pyc
1233
0644
edit
dl
rm
build_py.pyo
1233
0644
edit
dl
rm
build_scripts.py
1665
0644
edit
dl
rm
build_scripts.pyc
1934
0644
edit
dl
rm
build_scripts.pyo
1934
0644
edit
dl
rm
build_src.py
31776
0644
edit
dl
rm
build_src.pyc
24504
0644
edit
dl
rm
build_src.pyo
24504
0644
edit
dl
rm
config.py
16084
0644
edit
dl
rm
config.pyc
12955
0644
edit
dl
rm
config.pyo
12955
0644
edit
dl
rm
config_compiler.py
4288
0644
edit
dl
rm
config_compiler.pyc
5823
0644
edit
dl
rm
config_compiler.pyo
5823
0644
edit
dl
rm
develop.py
575
0644
edit
dl
rm
develop.pyc
1006
0644
edit
dl
rm
develop.pyo
1006
0644
edit
dl
rm
egg_info.py
360
0644
edit
dl
rm
egg_info.pyc
687
0644
edit
dl
rm
egg_info.pyo
687
0644
edit
dl
rm
install.py
3008
0644
edit
dl
rm
install.pyc
2662
0644
edit
dl
rm
install.pyo
2662
0644
edit
dl
rm
install_clib.py
1249
0644
edit
dl
rm
install_clib.pyc
2117
0644
edit
dl
rm
install_clib.pyo
2117
0644
edit
dl
rm
install_data.py
848
0644
edit
dl
rm
install_data.pyc
1176
0644
edit
dl
rm
install_data.pyo
1176
0644
edit
dl
rm
install_headers.py
918
0644
edit
dl
rm
install_headers.pyc
1259
0644
edit
dl
rm
install_headers.pyo
1259
0644
edit
dl
rm
scons.py
24145
0644
edit
dl
rm
scons.pyc
21966
0644
edit
dl
rm
scons.pyo
21966
0644
edit
dl
rm
sdist.py
732
0644
edit
dl
rm
sdist.pyc
1211
0644
edit
dl
rm
sdist.pyo
1211
0644
edit
dl
rm
__init__.py
836
0644
edit
dl
rm
__init__.pyc
885
0644
edit
dl
rm
__init__.pyo
885
0644
edit
dl
rm
Edit:
/usr/lib64/python2.6/site-packages/numpy/distutils/command/install.py
(3008B)
import sys if 'setuptools' in sys.modules: import setuptools.command.install as old_install_mod have_setuptools = True else: import distutils.command.install as old_install_mod have_setuptools = False old_install = old_install_mod.install from distutils.file_util import write_file class install(old_install): # Always run install_clib - the command is cheap, so no need to bypass it; # but it's not run by setuptools -- so it's run again in install_data sub_commands = old_install.sub_commands + [ ('install_clib', lambda x: True) ] def finalize_options (self): old_install.finalize_options(self) self.install_lib = self.install_libbase def setuptools_run(self): """ The setuptools version of the .run() method. We must pull in the entire code so we can override the level used in the _getframe() call since we wrap this call by one more level. """ # Explicit request for old-style install? Just do it if self.old_and_unmanageable or self.single_version_externally_managed: return old_install_mod._install.run(self) # Attempt to detect whether we were called from setup() or by another # command. If we were called by setup(), our caller will be the # 'run_command' method in 'distutils.dist', and *its* caller will be # the 'run_commands' method. If we were called any other way, our # immediate caller *might* be 'run_command', but it won't have been # called by 'run_commands'. This is slightly kludgy, but seems to # work. # caller = sys._getframe(3) caller_module = caller.f_globals.get('__name__','') caller_name = caller.f_code.co_name if caller_module != 'distutils.dist' or caller_name!='run_commands': # We weren't called from the command line or setup(), so we # should run in backward-compatibility mode to support bdist_* # commands. old_install_mod._install.run(self) else: self.do_egg_install() def run(self): if not have_setuptools: r = old_install.run(self) else: r = self.setuptools_run() if self.record: # bdist_rpm fails when INSTALLED_FILES contains # paths with spaces. Such paths must be enclosed # with double-quotes. f = open(self.record,'r') lines = [] need_rewrite = False for l in f.readlines(): l = l.rstrip() if ' ' in l: need_rewrite = True l = '"%s"' % (l) lines.append(l) f.close() if need_rewrite: self.execute(write_file, (self.record, lines), "re-writing list of installed files to '%s'" % self.record) return r
Save
cmd:
run