From f3d02e30c4e93b6244ca0dfff615602f7771decb Mon Sep 17 00:00:00 2001 From: MadLittleMods Date: Thu, 15 Sep 2022 21:28:54 +0000 Subject: deploy: 6986bcbf3950ef6fdd19eed27130dd2be3c74cb6 --- develop/development/dependencies.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'develop/development') 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 poetry shell before

...reset my venv to the locked environment?

poetry install --extras all --remove-untracked
 
+

...delete everything and start over from scratch?

+
# 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
+

...run a command in the poetry virtualenv?

Use poetry run cmd args when you need the python virtualenv context. To avoid typing poetry run all the time, you can run poetry shell @@ -330,6 +344,11 @@ installed poetry with pipx, try pipx runpip poet

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 poetry install.) Try poetry cache list and poetry cache clear --all <name of cache> to see if that fixes things.

+

Remove outdated egg-info

+

Delete the matrix_synapse.egg-info/ directory from the root of your Synapse +install.

+

This stores some cached information about dependencies and often conflicts with +letting Poetry do the right thing.

Try --verbose or --dry-run arguments.

Sometimes useful to see what poetry's internal logic is.

-- cgit 1.5.1