docs: consistently use 'managed environment' over 'named ...'
This commit is contained in:
parent
c16f166dcc
commit
79e821a43e
@ -58,9 +58,9 @@ Using Environments
|
|||||||
Here we follow a typical use case of creating, concretizing,
|
Here we follow a typical use case of creating, concretizing,
|
||||||
installing and loading an environment.
|
installing and loading an environment.
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
Creating a named Environment
|
Creating a managed Environment
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
An environment is created by:
|
An environment is created by:
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ def env_activate(args):
|
|||||||
short_name = os.path.basename(env_path)
|
short_name = os.path.basename(env_path)
|
||||||
ev.Environment(env).write(regenerate=False)
|
ev.Environment(env).write(regenerate=False)
|
||||||
|
|
||||||
# Named environment
|
# Managed environment
|
||||||
elif ev.exists(env_name_or_dir) and not args.dir:
|
elif ev.exists(env_name_or_dir) and not args.dir:
|
||||||
env_path = ev.root(env_name_or_dir)
|
env_path = ev.root(env_name_or_dir)
|
||||||
short_name = env_name_or_dir
|
short_name = env_name_or_dir
|
||||||
|
@ -95,7 +95,7 @@ def location(parser, args):
|
|||||||
spack.cmd.require_active_env("location -e")
|
spack.cmd.require_active_env("location -e")
|
||||||
path = ev.active_environment().path
|
path = ev.active_environment().path
|
||||||
else:
|
else:
|
||||||
# Get named environment path
|
# Get path of requested environment
|
||||||
if not ev.exists(args.location_env):
|
if not ev.exists(args.location_env):
|
||||||
tty.die("no such environment: '%s'" % args.location_env)
|
tty.die("no such environment: '%s'" % args.location_env)
|
||||||
path = ev.root(args.location_env)
|
path = ev.root(args.location_env)
|
||||||
|
@ -271,7 +271,7 @@ def read(name):
|
|||||||
|
|
||||||
|
|
||||||
def create(name, init_file=None, with_view=None, keep_relative=False):
|
def create(name, init_file=None, with_view=None, keep_relative=False):
|
||||||
"""Create a named environment in Spack."""
|
"""Create a managed environment in Spack."""
|
||||||
if not os.path.isdir(env_root_path()):
|
if not os.path.isdir(env_root_path()):
|
||||||
fs.mkdirp(env_root_path())
|
fs.mkdirp(env_root_path())
|
||||||
validate_env_name(name)
|
validate_env_name(name)
|
||||||
@ -303,7 +303,7 @@ def all_environment_names():
|
|||||||
|
|
||||||
|
|
||||||
def all_environments():
|
def all_environments():
|
||||||
"""Generator for all named Environments."""
|
"""Generator for all managed Environments."""
|
||||||
for name in all_environment_names():
|
for name in all_environment_names():
|
||||||
yield read(name)
|
yield read(name)
|
||||||
|
|
||||||
@ -878,7 +878,7 @@ def name(self):
|
|||||||
"""Human-readable representation of the environment.
|
"""Human-readable representation of the environment.
|
||||||
|
|
||||||
This is the path for directory environments, and just the name
|
This is the path for directory environments, and just the name
|
||||||
for named environments.
|
for managed environments.
|
||||||
"""
|
"""
|
||||||
if self.internal:
|
if self.internal:
|
||||||
return os.path.basename(self.path)
|
return os.path.basename(self.path)
|
||||||
|
@ -459,7 +459,7 @@ def make_argument_parser(**kwargs):
|
|||||||
dest="env_dir",
|
dest="env_dir",
|
||||||
metavar="DIR",
|
metavar="DIR",
|
||||||
action="store",
|
action="store",
|
||||||
help="run with an environment directory (ignore named environments)",
|
help="run with an environment directory (ignore managed environments)",
|
||||||
)
|
)
|
||||||
env_group.add_argument(
|
env_group.add_argument(
|
||||||
"-E",
|
"-E",
|
||||||
|
Loading…
Reference in New Issue
Block a user