diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-10-15 14:10:05 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-10-15 14:10:05 +0200 |
| commit | ceeb7b97b00b57929c21cce7a161382d51c66651 (patch) | |
| tree | b34880af2dd3d3a2c9094f4857b184b6fce77a75 /gui/scripts/README.md | |
| parent | 2156081a3b5391aac5fa3fe9fa27dcedf9d5b4ba (diff) | |
| parent | 9bf06a8e8833e9a95b6bac95d57533f2ba724bda (diff) | |
| download | mullvadvpn-ceeb7b97b00b57929c21cce7a161382d51c66651.tar.xz mullvadvpn-ceeb7b97b00b57929c21cce7a161382d51c66651.zip | |
Merge branch 'convert-to-python3'
Diffstat (limited to 'gui/scripts/README.md')
| -rw-r--r-- | gui/scripts/README.md | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/gui/scripts/README.md b/gui/scripts/README.md index 8d94a47687..6d11c55ec0 100644 --- a/gui/scripts/README.md +++ b/gui/scripts/README.md @@ -1,10 +1,10 @@ -This is a folder with the supporting scripts written in python 2, node, bash. +This is a folder with the supporting scripts written in Python 3, node, bash. ## Dependency installation notes 1. Run the following command in terminal to install python dependencies: - `pip install -r requirements.txt` + `pip3 install -r requirements.txt` 2. Run `npm install -g topojson-server` to install `geo2topo` tool which is used by python scripts to convert GeoJSON to TopoJSON @@ -53,7 +53,7 @@ unzip ne_50m_populated_places.zip -d ne_50m_populated_places/ Run the following script to produce a TopoJSON data used by the app: ``` -python extract-geo-data.py +python3 extract-geo-data.py ``` and finally generate the R-Tree cache: @@ -70,5 +70,22 @@ Once you've extracted all the geo data, run the integration script that will copy all files ignoring intermediate ones into the `gui/assets/geo` folder: ``` -python integrate-into-app.py +python3 integrate-into-app.py +``` + +## Locking Python dependencies + +1. Freeze dependencies: + +``` +pip3 freeze -r requirements.txt +``` + +and save the output into `requirements.txt`. + + +2. Hash them with `hashin` tool: + +``` +hashin --python 3.7 --verbose --update-all ``` |
