Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Update comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmachine committed May 5, 2017
1 parent 8f7a7bf commit 28ac104
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions project_template/go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ EOF

set -e

# Get absolute project directory from the location of this script.
# Get the absolute project directory from the location of this script.
# See: http://stackoverflow.com/a/4774063
export ICEKIT_PROJECT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}"); pwd -P)

Expand All @@ -18,18 +18,18 @@ export ICEKIT_VENV="$ICEKIT_PROJECT_DIR/var/go.sh-venv"
# Don't write `*.pyc` files.
export PYTHONDONTWRITEBYTECODE=1

# Create virtualenv.
# Create a virtualenv.
if [[ ! -d "$ICEKIT_VENV" ]]; then
virtualenv "$ICEKIT_VENV"
fi

# Install ICEKit.
# Install requirements.
if [[ -z $("$ICEKIT_VENV/bin/python" -m pip freeze | grep django-icekit) ]]; then
bash -c "'$ICEKIT_VENV/bin/python' -m pip install --no-cache-dir --no-deps -r <(grep -v setuptools requirements.txt)" # Unpin setuptools dependencies. See: https://github.com/pypa/pip/issues/4264
md5sum requirements.txt > requirements.txt.md5
fi

# Get absolute directory for the `icekit` package.
# Get the absolute directory for the `icekit` package.
export ICEKIT_DIR=$("$ICEKIT_VENV/bin/python" -c "import icekit, os, sys; sys.stdout.write('%s\n' % os.path.dirname(icekit.__file__));")

# Execute entrypoint and command.
Expand Down

0 comments on commit 28ac104

Please sign in to comment.