Skip to content
Snippets Groups Projects
Commit c2cb0adb authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[bootstrap] Do not set changeps1 to false as that affects deactivation of PS1...

[bootstrap] Do not set changeps1 to false as that affects deactivation of PS1 in hybrid environments (closes #16); Remove unused channels from default environment
parent 41145326
No related branches found
No related tags found
1 merge request!30Do not set changeps1 to false as that affects deactivation of PS1 on bash
Pipeline #27656 passed
...@@ -9,10 +9,7 @@ _BASE_CONDARC = '''\ ...@@ -9,10 +9,7 @@ _BASE_CONDARC = '''\
default_channels: default_channels:
- https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/free - https://repo.anaconda.com/pkgs/free
- https://repo.anaconda.com/pkgs/r
- https://repo.anaconda.com/pkgs/pro
add_pip_as_python_dependency: false #!final add_pip_as_python_dependency: false #!final
changeps1: false #!final
always_yes: true #!final always_yes: true #!final
quiet: true #!final quiet: true #!final
show_channel_urls: true #!final show_channel_urls: true #!final
......
...@@ -288,7 +288,7 @@ def conda_create(conda, name, overwrite, condarc, packages, dry_run, use_local): ...@@ -288,7 +288,7 @@ def conda_create(conda, name, overwrite, condarc, packages, dry_run, use_local):
if not dry_run: if not dry_run:
# get envdir again - it may just be created! # get envdir again - it may just be created!
envdir = get_env_directory(conda, name) envdir = get_env_directory(conda, name)
destrc = os.path.join(envdir, '.condarc') destrc = os.path.join(envdir, 'condarc')
logger.info('Creating %s...', destrc) logger.info('Creating %s...', destrc)
with open(destrc, 'w') as f: with open(destrc, 'w') as f:
yaml.dump(condarc, f, indent=2) yaml.dump(condarc, f, indent=2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment