Skip to content

Commit 8a0db95

Browse files
authored
Merge pull request #226 from altheaden/pip-install-flags
Add additional flags to `pip install` command in docs and deployment
2 parents 69665e0 + 9088c0f commit 8a0db95

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

configure_polaris_envs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def main():
7171
f'[email protected]:{args.mache_fork}.git mache && ' \
7272
f'cd mache && ' \
7373
f'conda install -y --file spec-file.txt && ' \
74-
f'python -m pip install --no-deps .'
74+
f'python -m pip install --no-deps --no-build-isolation .'
7575

7676
check_call(commands, logger=logger)
7777

deploy/bootstrap.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ def main(): # noqa: C901
143143

144144
if options['local_mache']:
145145
print('Install local mache\n')
146-
commands = f'source {conda_base}/etc/profile.d/conda.sh && ' \
147-
f'conda activate {conda_env_name} && ' \
148-
f'conda install -y importlib_resources jinja2' \
149-
f' lxml pyyaml progressbar2 && ' \
150-
f'cd ../build_mache/mache && ' \
151-
f'python -m pip install --no-deps .'
146+
commands = \
147+
f'source {conda_base}/etc/profile.d/conda.sh && ' \
148+
f'conda activate {conda_env_name} && ' \
149+
f'conda install -y importlib_resources jinja2' \
150+
f' lxml pyyaml progressbar2 && ' \
151+
f'cd ../build_mache/mache && ' \
152+
f'python -m pip install --no-deps --no-build-isolation .'
152153
check_call(commands, logger=options['logger'])
153154

154155
previous_conda_env = conda_env_name
@@ -618,7 +619,7 @@ def _build_conda_env(options, activate_base):
618619
f'{activate_env} && ' \
619620
f'cd {source_path} && ' \
620621
f'rm -rf polaris.egg-info && ' \
621-
f'python -m pip install --no-deps -e .'
622+
f'python -m pip install --no-deps --no-build-isolation -e .'
622623
check_call(commands, logger=logger)
623624

624625
print('Installing pre-commit\n')
@@ -682,7 +683,7 @@ def _build_jigsaw(options, activate_env, source_path, conda_env_path):
682683
commands = \
683684
f'{activate_env} && ' \
684685
f'cd {source_path}/jigsaw-python && ' \
685-
f'python -m pip install --no-deps -e . && ' \
686+
f'python -m pip install --no-deps --no-build-isolation -e . && ' \
686687
f'cp jigsawpy/_bin/* ${{CONDA_PREFIX}}/bin'
687688
check_call(commands, logger=logger)
688689

@@ -1061,7 +1062,8 @@ def _write_load_polaris(options, prefix, spack_script, env_vars):
10611062
# update the polaris installation to point here
10621063
mkdir -p deploy_tmp/logs
10631064
echo Reinstalling polaris package in edit mode...
1064-
python -m pip install --no-deps -e . &> deploy_tmp/logs/install_polaris.log
1065+
python -m pip install --no-deps --no-build-isolation -e . \\
1066+
&> deploy_tmp/logs/install_polaris.log
10651067
echo Done.
10661068
echo
10671069
fi

docs/developers_guide/quick_start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ With the conda environment activated, you can switch branches and update
379379
just the `polaris` package with:
380380

381381
```bash
382-
python -m pip install -e .
382+
python -m pip install --no-deps --no-build-isolation -e .
383383
```
384384

385385
The activation script will do this automatically when you source it in
@@ -444,7 +444,7 @@ With the conda environment activated, you can switch branches and update
444444
just the `polaris` package with:
445445

446446
```bash
447-
python -m pip install -e .
447+
python -m pip install --no-deps --no-build-isolation -e .
448448
```
449449

450450
This will be substantially faster than rerunning

0 commit comments

Comments
 (0)