Skip to content

Update installation instructions for packit-deploy#1

Open
david-mears-2 wants to merge 1 commit intomainfrom
update-installation-instructions
Open

Update installation instructions for packit-deploy#1
david-mears-2 wants to merge 1 commit intomainfrom
update-installation-instructions

Conversation

@david-mears-2
Copy link
Copy Markdown

@david-mears-2 david-mears-2 commented Mar 17, 2026

On packit-dev.dide.ic.ac.uk, installing packit-deploy with pip or pip3 does not work (regardless of the presence of the --user flag): it gives the error 'error: externally-managed-environment', which goes on to encourage the use of a virtual environment, and lists pipx as an option for doing so. Looking at shell history on that host, this seems to be our de facto installation pattern.

Note that on the production version (packit.dide.ic.ac.uk), pip and pip3 are not installed, while pipx is.

On packit-dev.dide.ic.ac.uk, installing packit-deploy with pip or pip3 does not work (regardless of the presence of the --user flag): it gives the error 'error: externally-managed-environment', which goes on to encourage the use of a virtual environment, and lists pipx as an option for doing so. Looking at shell history on that host, this seems to be our de facto installation pattern.
Copy link
Copy Markdown

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry David, we should retire this repo, as provisioning of the packit machines is now done through infra-scripts .

Here's the packit machine script on there: https://github.com/reside-ic/infra-scripts/blob/main/src/infra/tasks/packit.py

And the inventory details which machines to deploy that to: https://github.com/reside-ic/infra-scripts/blob/main/inventory/services.yaml

This just gets packit-deploy onto the machine, you then need to pull down packit-config in order to deploy your desired config onto the machine.

We should put some friendlier docs in packit-config - at the moment this just records the Migration instructions (helpfully not saying migration from what, but I believe this is an artefact of migrating from nix), but it would be good to capture how to update the deployer, how to get the config, how to deploy a branch etc. Would you mind making a ticket for that while this is in your headspace?

@david-mears-2
Copy link
Copy Markdown
Author

Should this repo be archived?

@david-mears-2
Copy link
Copy Markdown
Author

Should https://github.com/reside-ic/packit-infra (Nix for Packit) be archived too?

@EmmaLRussell
Copy link
Copy Markdown

Should https://github.com/reside-ic/packit-infra (Nix for Packit) be archived too?

Yes, done. We should do this one too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants