Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

More robust install.sh #93

Merged
merged 3 commits into from
Dec 11, 2019
Merged

More robust install.sh #93

merged 3 commits into from
Dec 11, 2019

Conversation

godofgrunts
Copy link
Contributor

@godofgrunts godofgrunts commented Dec 10, 2019

The ./install.sh is pretty lacking and requires a lot of user intervention. I've tried to make it more robust and support several Linux distros other than Ubuntu/Debian.

I'm currently using EndeavourOS (Arch based) and we're on Python 3.8. Tensorflow 1.15 only works up to Python 3.6.

Because of this, I added a check to see what version of Python you're on. If you're not on 3.6 it'll ask you to manually install it (no way I was going to try to manage that.) or it allows you to enter a manual path for pip3.6.

Also during my testing, it was annoying that the script just assumed I didn't have any problems if it found ./generator/gpt2/models so now it asks if you want to reinstall.

I've tested this script in several different ways and it has passed all of my tests, but I don't have any other distros installed to try it out on.

I'm not going to pretend I'm a Bash wizard so any feed back is appreciated.

@nickwalton
Copy link
Contributor

Thanks for doing that! Can someone test this and confirm that it works?

Copy link
Contributor

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

It's an improvement overall, and there are plenty of good changes in here. A small complaint I have is that there are a lot of extra newlines that don't help with readability.

install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
@godofgrunts
Copy link
Contributor Author

Made all commented changes, but also fixed #96 by changing the torrent URL.

@ben-bay
Copy link
Contributor

ben-bay commented Dec 11, 2019

Lol I'm not a shell wizard either, but this does look pretty good.

@ben-bay ben-bay self-assigned this Dec 11, 2019
@ben-bay ben-bay merged commit 813807e into latitudegames:develop Dec 11, 2019
@louisgv louisgv mentioned this pull request Dec 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants