Python distutils.errors.DistutilsInternalError() Examples
The following are 21
code examples of distutils.errors.DistutilsInternalError().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
distutils.errors
, or try the search function
.
Example #1
Source File: misc_util.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #2
Source File: misc_util.py From keras-lambda with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #3
Source File: misc_util.py From twitter-stock-recommendation with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #4
Source File: misc_util.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #5
Source File: misc_util.py From Carnets with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #6
Source File: misc_util.py From coffeegrindsize with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #7
Source File: misc_util.py From elasticintel with GNU General Public License v3.0 | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #8
Source File: misc_util.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #9
Source File: misc_util.py From ImageFusion with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #10
Source File: misc_util.py From mxnet-lambda with Apache License 2.0 | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #11
Source File: misc_util.py From pySINDy with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #12
Source File: misc_util.py From recruit with Apache License 2.0 | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #13
Source File: misc_util.py From predictive-maintenance-using-machine-learning with Apache License 2.0 | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #14
Source File: misc_util.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #15
Source File: ldist.py From lambda-setuptools with Apache License 2.0 | 5 votes |
def _install_dist_package(self): # Get the name of the package that we just built package_name = self.distribution.get_name() # Get the dist directory that bdist_wheel put the package in # Create the lambda build dir self._lambda_build_dir = os.path.join('build', 'ldist-'+package_name) build_dir = self._lambda_build_dir if getattr(self, 'build_layer'): build_dir = os.path.join(build_dir, getattr(self, 'layer_dir')) try: if os.path.exists(self._lambda_build_dir): shutil.rmtree(self._lambda_build_dir) log.info('creating {}'.format(self._lambda_build_dir)) os.makedirs(build_dir) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(self._lambda_build_dir): pass else: raise DistutilsInternalError('{} already exists and is not a directory'.format(self._lambda_build_dir)) log.info('installing package {} from {} into {}'.format(package_name, self._dist_dir, build_dir)) pip = Popen(['pip', 'install', '-f', self._dist_dir, '-t', build_dir, package_name], stdout=PIPE, stderr=PIPE) stdout, stderr = pip.communicate() if pip.returncode is not 0: log.info("pip stdout: {}".format(stdout)) log.error("pip stderr: {}".format(stderr)) raise DistutilsPlatformError('pip returned unsuccessfully') else: log.debug("pip stdout: {}".format(stdout)) log.debug("pip stderr: {}".format(stderr))
Example #16
Source File: misc_util.py From Mastering-Elasticsearch-7.0 with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #17
Source File: misc_util.py From Computable with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #18
Source File: misc_util.py From vnpy_crypto with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #19
Source File: misc_util.py From auto-alt-text-lambda-api with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #20
Source File: misc_util.py From lambda-packs with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]
Example #21
Source File: misc_util.py From lambda-packs with MIT License | 5 votes |
def get_cmd(cmdname, _cache={}): if cmdname not in _cache: import distutils.core dist = distutils.core._setup_distribution if dist is None: from distutils.errors import DistutilsInternalError raise DistutilsInternalError( 'setup distribution instance not initialized') cmd = dist.get_command_obj(cmdname) _cache[cmdname] = cmd return _cache[cmdname]