Skip to content

Commit 938f5a2

Browse files
committed
[readme] update project dependencies and readme instruction for GDAL
1 parent 53afdf2 commit 938f5a2

File tree

3 files changed

+37
-11
lines changed

3 files changed

+37
-11
lines changed

README.md

+31-3
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,49 @@ data repository.
2828

2929
## Requirements
3030

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
3232
`setup.py` file, and additional dependencies for developing purpose are listed
3333
in `requirements-dev.txt`.
3434

35-
## From source
35+
### From source
3636

3737
```
3838
$ git clone https://github.com/Oslandia/deeposlandia
3939
$ cd deeposlandia
4040
$ virtualenv -p /usr/bin/python3 venv
4141
$ source venv/bin/activate
42-
(venv)$ python setup.py install
4342
(venv)$ pip install -r requirements-dev.txt
4443
```
4544

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+
4674
## Running the code
4775

4876
- [Data preprocessing](deeposlandia/preprocessing.md)

requirements-dev.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-e .
22
pytest
33
ipdb
4+
flake8
45
ipython
56
jupyter

setup.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,13 @@ def find_version(*file_paths):
1818

1919
install_requires = [
2020
'opencv-python<=3.4.0.12',
21-
'numpy<=1.14.2',
22-
'pandas<=0.22.0',
2321
'pillow<=5.0.0',
24-
'tensorflow<=1.6',
25-
'keras<=2.1.5',
26-
'matplotlib<=2.2.0',
27-
'h5py<=2.7.1',
28-
'daiquiri<=1.3.0',
22+
'tensorflow<=1.10',
23+
'keras<=2.2.4',
24+
'daiquiri<=1.5.0',
2925
'Flask<=1.0.2',
30-
'seaborn<=0.8.1']
26+
'seaborn<=0.8.1',
27+
'geopandas<=0.4.0']
3128

3229
setup(
3330
name='deeposlandia',

0 commit comments

Comments
 (0)