Skip to content

Commit

Permalink
add configurable Python interpreter, related to rholder#12
Browse files Browse the repository at this point in the history
  • Loading branch information
rholder committed Jul 30, 2015
1 parent 804321c commit e2e82c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions debinate
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o pipefail

readonly DEBINATE=${0##*/}
readonly DEBINATE_VERSION=0.2.1
readonly DEBINATE_VERSION=0.2.2
readonly PROVISIONING=.debinate
readonly BUILD=${PROVISIONING}/build
readonly TARGET=${PROVISIONING}/target
Expand All @@ -33,6 +33,9 @@ readonly PROJECT_NAME="${PROJECT_NAME:-$PROJECT_BASE_DIR}"
# version defaults to 1.0.0 if unset
readonly VERSION="${VERSION:-1.0.0}"

# Python interpreter defaults to whatever is currently python
readonly DEBINATE_PYTHON="${DEBINATE_PYTHON:-$(which python)}"

# print usage information and exit
function usage () {
cat << EOF
Expand Down Expand Up @@ -86,7 +89,7 @@ function package () {
fi

mkdir -p "${TARGET_VIRTUAL_ENV}"
virtualenv --python="$(which python)" --distribute "${TARGET_VIRTUAL_ENV}"
virtualenv --python="${DEBINATE_PYTHON}" --distribute "${TARGET_VIRTUAL_ENV}"
source "${TARGET_VIRTUAL_ENV}/bin/activate"

# use the cache unless you like redownloading things
Expand Down

0 comments on commit e2e82c7

Please sign in to comment.