Pavan2k4 commited on
Commit
c014afa
·
verified ·
1 Parent(s): 1eea3f5

Update build.sh

Browse files
Files changed (1) hide show
  1. build.sh +9 -9
build.sh CHANGED
@@ -9,22 +9,22 @@ sudo apt install -y gdal-bin libgdal-dev
9
  # Install Python3 development files
10
  sudo apt install -y python3-dev
11
 
12
- # Install GDAL Python bindings
13
- sudo apt install -y python3-gdal
14
-
15
  # Get GDAL version
16
  GDAL_VERSION=$(gdal-config --version)
17
 
18
  # Install GDAL for pip with the matching version
19
- pip install GDAL
 
 
 
20
 
21
  # Create a Python script to test the installation
22
  cat << EOF > test_osgeo.py
23
- import osgeo
24
- print(f"OSGEO version: {osgeo.__version__}")
 
 
25
  EOF
26
 
27
  # Run the test script
28
- python3 test_osgeo.py
29
-
30
- echo "Installation complete. If you see the OSGEO version above, the installation was successful."
 
9
  # Install Python3 development files
10
  sudo apt install -y python3-dev
11
 
 
 
 
12
  # Get GDAL version
13
  GDAL_VERSION=$(gdal-config --version)
14
 
15
  # Install GDAL for pip with the matching version
16
+ pip install GDAL==$GDAL_VERSION
17
+
18
+ # Install other required packages
19
+ pip install streamlit
20
 
21
  # Create a Python script to test the installation
22
  cat << EOF > test_osgeo.py
23
+ import streamlit as st
24
+ from osgeo import gdal
25
+
26
+ st.write(f"GDAL version: {gdal.__version__}")
27
  EOF
28
 
29
  # Run the test script
30
+ streamlit run test_osgeo.py