-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (44 loc) · 1.79 KB
/
Makefile
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
49
50
51
52
setup:
# clone poliastro if needed
@if [ ! -d poliastro ]; then \
echo "STEP 1: Cloning poliasto"; \
git clone https://github.com/poliastro/poliastro ; \
else \
echo "STEP 1: Poliastro detected, updating"; \
cd poliastro; \
git pull; \
cd ..; \
fi
# create virtualenv if needed
@if [ ! -d venv ]; then \
echo "STEP 2: Creating virtual environment (venv)"; \
python3 -m venv venv; \
else \
echo "STEP 2: venv already set up"; \
fi
# set up perylune.ini if needed
@if [ ! -f perylune.ini ]; then \
echo "STEP 3: Perylune.ini not found, copying over template"; \
cp perylune.ini-template perylune.ini; \
else \
echo "STEP 3: perylune.ini already present."; \
fi
# update pip
echo "STEP 4: Updating pip"
venv/bin/pip install --upgrade pip
# install dependencies
echo "STEPS 5: Installing dependencies"
venv/bin/pip install -r requirements.txt
perylune-venv-install:
# Pretend to install perylune in the venv
cd venv/lib64/python3.8/site-packages && ln -s -f ../../../../perylune/
perylune-venv-uninstall:
# Uninstalling perylune from the venv
rm -rf venv/lib64/python3.8/site-packages/perylune
check:
PYTHONPATH=.:poliastro/src pytest -v --ignore=poliastro
upload_cesium:
cd cesium
npm run build
scp -r dist perylune:public_html/cesium
scp -r czml/polish.czml perylune:public_html/cesium/czml/polish.czml