Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wiseplat
GitHub Repository: wiseplat/python-code
Path: blob/master/ invest-robot-contest_TinkoffBotTwitch-main/venv/lib/python3.8/site-packages/numpy/distutils/pathccompiler.py
7757 views
1
from distutils.unixccompiler import UnixCCompiler
2
3
class PathScaleCCompiler(UnixCCompiler):
4
5
"""
6
PathScale compiler compatible with an gcc built Python.
7
"""
8
9
compiler_type = 'pathcc'
10
cc_exe = 'pathcc'
11
cxx_exe = 'pathCC'
12
13
def __init__ (self, verbose=0, dry_run=0, force=0):
14
UnixCCompiler.__init__ (self, verbose, dry_run, force)
15
cc_compiler = self.cc_exe
16
cxx_compiler = self.cxx_exe
17
self.set_executables(compiler=cc_compiler,
18
compiler_so=cc_compiler,
19
compiler_cxx=cxx_compiler,
20
linker_exe=cc_compiler,
21
linker_so=cc_compiler + ' -shared')
22
23