Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Add additional POST INSTALL Message
Browse files Browse the repository at this point in the history
- Elaborated the POST INSTALL Message when the -e flag is used
- Create a new POST INSTALL Message for those who do not use the -e
option
  • Loading branch information
cgoodale committed Jun 4, 2014
1 parent b8dda5f commit 98e3cb5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions easy-ocw/install-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,39 @@ pip install -r ocw-pip-dependencies.txt >> install_log

if [ $WITH_VIRTUAL_ENV == 1 ]; then
echo "***POST INSTALLATION NOTE***
If you are familiar with virtualenv you should know that activating
the new 'ocw' environment is different because we use conda to install
packages. An example of the command you want to run is listed in the
alias below.
To make it easier to change into the 'ocw' virtualenv add the
following alias to your ~/.bash_profile
alias ocw='source ~/ocw/bin/activate ~/ocw/'
When you want to use ocw in the future, you just have to type 'ocw'
in your terminal."
else
echo "***POST INSTALLATION NOTE***
If you have run this script within your own virtualenv you need to know
a couple of caveats/side effects that are caused by using conda to install
packages within the virtualenv.
- Virtualenv wrapper will throw errors like those outlined here:
https://issues.apache.org/jira/browse/CLIMATE-451
- You will not be able to 'activate' the environment using the normal
virtualenv command, you must instead use the conda activate command as follows:
source path/to/your_env/bin/activate path/to/your_env
Example: (assuming your env is in ~/.virtualenv/ocw)
source ~/.virtualenv/ocw/bin/activate ~/.virtualenv/ocw
"

fi

0 comments on commit 98e3cb5

Please sign in to comment.