-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows and Linux Script Installers #78
base: master
Are you sure you want to change the base?
Conversation
Hi @caldwella2, thanks for the PR. Can you please update the PR title with a more descriptive summarization of the change? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this feature. I have a few small requests before merging this.
- It's important to include documentation on those scripts by updating
README.md
and letting users know that they could either follow the individual commands OR run the scripts you wrote. Additionally, you'll need to include the commands to run the scripts and which one for which operating system. - Since there aren't any changes being made to the python files, please make sure to not include
Pipfle.lock
in this pull request - I think it's a good idea to put these scripts in a separate folder that could be called
scripts
. This is important to keep the repository organized, especially that new scripts are being added for Docker. We can discuss this further if you have any questions.
Codecov Report
@@ Coverage Diff @@
## master #78 +/- ##
=======================================
Coverage 92.09% 92.09%
=======================================
Files 6 6
Lines 253 253
=======================================
Hits 233 233
Misses 20 20 |
#!/bin/bash | ||
if [ -f "$(eval 'which pip')" ] | ||
then | ||
pip_version="pip" | ||
elif [ -f "$(eval 'which pip3')" ] | ||
then | ||
pip_version="pip3" | ||
else | ||
$(eval "python3 -m pip install --upgrade pip") | ||
pip_version="pip" | ||
fi | ||
|
||
echo $(eval "$pip_version install pipenv -U") | ||
echo $(eval "cd ..") | ||
echo $(eval "pipenv install") | ||
echo $(eval "pipenv run python -m spacy download en_core_web_sm") | ||
echo $(eval "pipenv run python -m spacy download en_core_web_md") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
|
||
|
||
pipenv install | ||
pipenv run python -m spacy download en_core_web_sm | ||
pipenv run python -m spacy download en_core_web_md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any status update on the windows script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are currently working on a version that executes the correct commands with the correct versions, yet we are having some issues where there are some dependencies that error out before installing.
Together we decided it would be easier to have a script to download all the spacy downloads and pipenv installs in one go rather than having to individually type and run them one at a time.
What is the current behavior?
The user has to individually type/run each command to download spacy and pipenv.
#72
What is the new behavior if this PR is merged?
Pertaining to the operating system they are using, the user can type install.bat or install.sh to install the spacy downloads as well as pipenv installs.
The installs and downloads above are what is inside install.bat for Windows and in install.sh there is an additive of:
Please describe the pull request as one of the following:
Other information
This PR has:
(Other Windows and Linux users tested the installs)
Developers
@PaigeCD @caldwella2 @angusn8 @connellyw @nathandloria