Tobotimus / Tobo-Cogs

Tobo's Cogs for Red-DiscordBot
https://github.com/Cog-Creators/Red-DiscordBot
GNU General Public License v3.0
23 stars 42 forks source link

[UpdateRed] Improve update speed and efficiency #34

Closed Tobotimus closed 6 years ago

Tobotimus commented 6 years ago

Right now, UpdateRed is doing --force-reinstall --no-cache-dir for every install, mostly so it forces the discord.py dependency link to be used.

It would be nice if we installed without those flags so we only downloaded and upgraded the necessary packages.

I'm thinking using pip download --no-deps to get the source distribution archive, find the discord.py dependency link from dependency_links.txt inside the downloaded archive, install it with pip install -r dependency_links.txt, and from there, just install the rest of the package with pip install Red-DiscordBot.tar.gz. Should be much faster, efficient and less verbose :smiley:

Tobotimus commented 6 years ago

Done in 6f14393.