twisted-infra / braid

Automation scripts for twistedmatrix.com
Other
6 stars 12 forks source link

Don't install pip as root. #247

Open markrwilliams opened 6 years ago

markrwilliams commented 6 years ago

braid.pip.install installs pip and some dependencies, including setuptools, into the system's site packages directory. This is fraught with peril because the newly installed setuptools might conflict with the system's setuptools in disastrous ways.

It would be better to install pip and virtualenv into each user's site packages directory. This contains the potential damage and makes recovering from a bad installation is as easy as deleting files from ~/.local.

Once installed, these tools can be used to bootstrap virtual environments through the existing code in braid.venv.

markrwilliams commented 6 years ago

Also, it doesn't look like anything uses braid.pip now?