diff options
author | MadLittleMods <MadLittleMods@users.noreply.github.com> | 2022-09-15 21:28:54 +0000 |
---|---|---|
committer | MadLittleMods <MadLittleMods@users.noreply.github.com> | 2022-09-15 21:28:54 +0000 |
commit | f3d02e30c4e93b6244ca0dfff615602f7771decb (patch) | |
tree | ae77b7602664995e04cf4f30ea0817174cf31172 /develop/development | |
parent | deploy: 5093cbf88da1c439f5bf16b7a4cf19246781bd93 (diff) | |
download | synapse-f3d02e30c4e93b6244ca0dfff615602f7771decb.tar.xz |
deploy: 6986bcbf3950ef6fdd19eed27130dd2be3c74cb6
Diffstat (limited to 'develop/development')
-rw-r--r-- | develop/development/dependencies.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/develop/development/dependencies.html b/develop/development/dependencies.html index 75cda34011..7559d61c5c 100644 --- a/develop/development/dependencies.html +++ b/develop/development/dependencies.html @@ -242,6 +242,20 @@ context of poetry's venv, without having to run <code>poetry shell</code> before <h2 id="reset-my-venv-to-the-locked-environment"><a class="header" href="#reset-my-venv-to-the-locked-environment">...reset my venv to the locked environment?</a></h2> <pre><code class="language-shell">poetry install --extras all --remove-untracked </code></pre> +<h2 id="delete-everything-and-start-over-from-scratch"><a class="header" href="#delete-everything-and-start-over-from-scratch">...delete everything and start over from scratch?</a></h2> +<pre><code class="language-shell"># Stop the current virtualenv if active +$ deactivate + +# Remove all of the files from the current environment. +# Don't worry, even though it says "all", this will only +# remove the Poetry virtualenvs for the current project. +$ poetry env remove --all + +# Reactivate Poetry shell to create the virtualenv again +$ poetry shell +# Install everything again +$ poetry install --extras all +</code></pre> <h2 id="run-a-command-in-the-poetry-virtualenv"><a class="header" href="#run-a-command-in-the-poetry-virtualenv">...run a command in the <code>poetry</code> virtualenv?</a></h2> <p>Use <code>poetry run cmd args</code> when you need the python virtualenv context. To avoid typing <code>poetry run</code> all the time, you can run <code>poetry shell</code> @@ -330,6 +344,11 @@ installed <code>poetry</code> with <code>pipx</code>, try <code>pipx runpip poet <p>Poetry caches a bunch of information about packages that isn't readily available from PyPI. (This is what makes poetry seem slow when doing the first <code>poetry install</code>.) Try <code>poetry cache list</code> and <code>poetry cache clear --all <name of cache></code> to see if that fixes things.</p> +<h2 id="remove-outdated-egg-info"><a class="header" href="#remove-outdated-egg-info">Remove outdated egg-info</a></h2> +<p>Delete the <code>matrix_synapse.egg-info/</code> directory from the root of your Synapse +install.</p> +<p>This stores some cached information about dependencies and often conflicts with +letting Poetry do the right thing.</p> <h2 id="try---verbose-or---dry-run-arguments"><a class="header" href="#try---verbose-or---dry-run-arguments">Try <code>--verbose</code> or <code>--dry-run</code> arguments.</a></h2> <p>Sometimes useful to see what poetry's internal logic is.</p> |