mirror of
https://github.com/fedora-python/tox-current-env.git
synced 2025-01-11 08:56:14 +01:00
Add dummy installer so there is no chance to install packages
This commit is contained in:
parent
ba4146c10d
commit
07e8536934
@ -88,6 +88,13 @@ def tox_add_env_config(env_conf, config):
|
|||||||
env_conf.loaders.insert(0, empty_commands)
|
env_conf.loaders.insert(0, empty_commands)
|
||||||
|
|
||||||
|
|
||||||
|
class Installer:
|
||||||
|
"""Noop installer"""
|
||||||
|
|
||||||
|
def install(self, *args, **kwargs):
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
class CurrentEnv(PythonRun):
|
class CurrentEnv(PythonRun):
|
||||||
def __init__(self, create_args):
|
def __init__(self, create_args):
|
||||||
self._executor = None
|
self._executor = None
|
||||||
@ -151,9 +158,7 @@ class CurrentEnv(PythonRun):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def installer(self):
|
def installer(self):
|
||||||
if self._installer is None:
|
return Installer()
|
||||||
self._installer = Pip(self)
|
|
||||||
return self._installer
|
|
||||||
|
|
||||||
def prepend_env_var_path(self):
|
def prepend_env_var_path(self):
|
||||||
return [self.env_bin_dir()]
|
return [self.env_bin_dir()]
|
||||||
|
Loading…
Reference in New Issue
Block a user