@@ -28,21 +28,49 @@ data repository.
28
28
29
29
## Requirements
30
30
31
- The code has been run with Python 3. All dependencies are specified in
31
+ The code has been run with Python 3. The dependencies are specified in
32
32
` setup.py ` file, and additional dependencies for developing purpose are listed
33
33
in ` requirements-dev.txt ` .
34
34
35
- ## From source
35
+ ### From source
36
36
37
37
```
38
38
$ git clone https://github.com/Oslandia/deeposlandia
39
39
$ cd deeposlandia
40
40
$ virtualenv -p /usr/bin/python3 venv
41
41
$ source venv/bin/activate
42
- (venv)$ python setup.py install
43
42
(venv)$ pip install -r requirements-dev.txt
44
43
```
45
44
45
+ ### GDAL
46
+
47
+ As a particular case, GDAL is not included into the ` setup.py ` file.
48
+
49
+ For ̀Ubuntu` distributions, the following operations are needed to install this
50
+ program:
51
+
52
+ ```
53
+ sudo apt-get install libgdal-dev
54
+ sudo apt-get install python3-gdal
55
+ ```
56
+
57
+ The ` GDAL ` version can be verified by:
58
+
59
+ ```
60
+ gdal-config --version
61
+ ```
62
+
63
+ After that, a simple ` pip install GDAL ` may be sufficient, however considering
64
+ our own experience it is not the case on Ubuntu. One has to retrieve a ` GDAL `
65
+ for Python that corresponds to the ` GDAL ` of system:
66
+
67
+ ```
68
+ pip install --global-option=build_ext --global-option="-I/usr/include/gdal" GDAL==`gdal-config --version`
69
+ python3 -c "import osgeo;print(osgeo.__version__)"
70
+ ```
71
+
72
+ For other OS, please visit the ` GDAL ` installation documentation.
73
+
46
74
## Running the code
47
75
48
76
- [ Data preprocessing] ( deeposlandia/preprocessing.md )
0 commit comments