blob: 317ce71ee14bf60677b732d16a9401fc1838adbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#! /bin/bash
# Original author: Tim Graham.
set -xue
cd /tmp
RELEASE_VERSION="${VERSION}"
if [[ -z "$RELEASE_VERSION" ]]; then
echo "Please set VERSION as env var"
exit 1
fi
PKG_TAR=$(curl -Ls -o /dev/null -w '%{url_effective}' https://www.djangoproject.com/download/$RELEASE_VERSION/tarball/)
echo $PKG_TAR
PKG_WHL=$(curl -Ls -o /dev/null -w '%{url_effective}' https://www.djangoproject.com/download/$RELEASE_VERSION/wheel/)
echo $PKG_WHL
python3 -m venv django-pip
. django-pip/bin/activate
python -m pip install --no-cache-dir $PKG_TAR
django-admin startproject test_one
cd test_one
./manage.py --help # Ensure executable bits
python manage.py migrate
python manage.py runserver 0
deactivate
cd ..
rm -rf test_one
rm -rf django-pip
python3 -m venv django-pip-wheel
. django-pip-wheel/bin/activate
python -m pip install --no-cache-dir $PKG_WHL
django-admin startproject test_one
cd test_one
./manage.py --help # Ensure executable bits
python manage.py migrate
python manage.py runserver 0
deactivate
cd ..
rm -rf test_one
rm -rf django-pip-wheel
|