/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils
NameSizeModeActions
command/-0755rm
fcompiler/-0755rm
mingw/-0755rm
tests/-0755rm
__pycache__/-0755rm
ccompiler.py285370644editdlrm
compat.py2180644editdlrm
conv_template.py96870644editdlrm
core.py81830644editdlrm
cpuinfo.py229670644editdlrm
environment.py23460644editdlrm
exec_command.py86630644editdlrm
extension.py29670644editdlrm
from_template.py78080644editdlrm
info.py1570644editdlrm
intelccompiler.py42910644editdlrm
lib2def.py35120644editdlrm
line_endings.py20530644editdlrm
log.py27450644editdlrm
mingw32ccompiler.py251470644editdlrm
misc_util.py819720644editdlrm
msvc9compiler.py22580644editdlrm
msvccompiler.py19910644editdlrm
npy_pkg_config.py132430644editdlrm
numpy_distribution.py7000644editdlrm
pathccompiler.py7790644editdlrm
setup.py5890644editdlrm
site.cfg1740644editdlrm
system_info.py852830644editdlrm
unixccompiler.py51560644editdlrm
__config__.py17820644editdlrm
__init__.py7470644editdlrm
__version__.py1510644editdlrm
Edit: /opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/msvccompiler.py (1991B)
from __future__ import division, absolute_import, print_function import os from distutils.msvccompiler import MSVCCompiler as _MSVCCompiler from .system_info import platform_bits def _merge(old, new): """Concatenate two environment paths avoiding repeats. Here `old` is the environment string before the base class initialize function is called and `new` is the string after the call. The new string will be a fixed string if it is not obtained from the current enviroment, or the same as the old string if obtained from the same enviroment. The aim here is not to append the new string if it is already contained in the old string so as to limit the growth of the environment string. Parameters ---------- old : string Previous enviroment string. new : string New environment string. Returns ------- ret : string Updated environment string. """ if new in old: return old if not old: return new # Neither new nor old is empty. Give old priority. return ';'.join([old, new]) class MSVCCompiler(_MSVCCompiler): def __init__(self, verbose=0, dry_run=0, force=0): _MSVCCompiler.__init__(self, verbose, dry_run, force) def initialize(self): # The 'lib' and 'include' variables may be overwritten # by MSVCCompiler.initialize, so save them for later merge. environ_lib = os.getenv('lib', '') environ_include = os.getenv('include', '') _MSVCCompiler.initialize(self) # Merge current and previous values of 'lib' and 'include' os.environ['lib'] = _merge(environ_lib, os.environ['lib']) os.environ['include'] = _merge(environ_include, os.environ['include']) # msvc9 building for 32 bits requires SSE2 to work around a # compiler bug. if platform_bits == 32: self.compile_options += ['/arch:SSE2'] self.compile_options_debug += ['/arch:SSE2']