Re: [GRASS-dev] [release planning] GRASS GIS 8.3.0

2023-06-23 Thread Markus Neteler
On Fri, Jun 23, 2023 at 12:37 PM Martin Landa  wrote:
> pá 23. 6. 2023 v 12:33 odesílatel Markus Neteler  napsal:
>>
>> > For CI containers you can break the system packages as suggested.
>>
>> Like
>>
>> RUN pip3 install grass-session  --break-system-packages

Thanks. Debian dockerfile PR submitted:

https://github.com/OSGeo/grass/pull/3062

After success and backports I can resume the 8.3.0 release procedure.

Markus
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] [release planning] GRASS GIS 8.3.0

2023-06-23 Thread Martin Landa
Hi,

pá 23. 6. 2023 v 12:33 odesílatel Markus Neteler  napsal:

> > For CI containers you can break the system packages as suggested.
>
> Like
>
> RUN pip3 install grass-session  --break-system-packages
>

 yes. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] [release planning] GRASS GIS 8.3.0

2023-06-23 Thread Markus Neteler
On Fri, Jun 23, 2023 at 10:38 AM Sebastiaan Couwenberg
 wrote:
>
> On 6/23/23 10:31, Markus Neteler wrote:
> > diff --git a/docker/debian/Dockerfile b/docker/debian/Dockerfile
> > index 66134a2f67..d697738633 100644
> > --- a/docker/debian/Dockerfile
> > +++ b/docker/debian/Dockerfile
> > @@ -1,5 +1,5 @@
> >   FROM debian:stable
> > -# currently Debian 11
> > +# currently Debian 12
> >
> >   # docker run -it --rm debian:stable bash
> >   # apt-get update && apt-get install lsb-release -y && lsb_release -a
> > @@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND noninteractive
> >
> >   # define versions to be used (PDAL is not available on Debian, so we
> > compile it here)
> >   # https://github.com/PDAL/PDAL/releases
> > -ARG PDAL_VERSION=2.4.3
> > +ARG PDAL_VERSION=2.5.5
>
> There is no PDAL in bookworm:
>
>   https://tracker.debian.org/pkg/pdal

For that reason we  compile it when building the image:
https://github.com/OSGeo/grass/blob/51e962abbc1176211ad2c4cb7857a61a2b6d1c6f/docker/debian/Dockerfile#L104

> > STEP 48/59: RUN pip3 install grass-session
> > error: externally-managed-environment
> >
> > × This environment is externally managed
> > ╰─> To install Python packages system-wide, try apt install
> >  python3-xyz, where xyz is the package you are trying to
> >  install.
> >
> >  If you wish to install a non-Debian-packaged Python package,
> >  create a virtual environment using python3 -m venv path/to/venv.
> >  Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
> >  sure you have python3-full installed.
> >
> >  If you wish to install a non-Debian packaged Python application,
> >  it may be easiest to use pipx install xyz, which will manage a
> >  virtual environment for you. Make sure you have pipx installed.
> >
> >  See /usr/share/doc/python3.11/README.venv for more information.
> >
> > note: If you believe this is a mistake, please contact your Python
> > installation or OS distribution provider. You can override this, at
> > the risk of breaking your Python installation or OS, by passing
> > --break-system-packages.
> > hint: See PEP 668 for the detailed specification.
> > Error: building at STEP "RUN pip3 install grass-session": while
> > running runtime: exit status 1
> >
> > What is the best practice for Debian Dockerfiles here? A venv doesn't
> > make sense in this context.
>
> The best option is to package all Python modules and install those.

If anyone wants to take over - I have no time to package that.

> For CI containers you can break the system packages as suggested.

Like

RUN pip3 install grass-session  --break-system-packages

?

Best,
Markus
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] [release planning] GRASS GIS 8.3.0

2023-06-23 Thread Sebastiaan Couwenberg

On 6/23/23 10:31, Markus Neteler wrote:

diff --git a/docker/debian/Dockerfile b/docker/debian/Dockerfile
index 66134a2f67..d697738633 100644
--- a/docker/debian/Dockerfile
+++ b/docker/debian/Dockerfile
@@ -1,5 +1,5 @@
  FROM debian:stable
-# currently Debian 11
+# currently Debian 12

  # docker run -it --rm debian:stable bash
  # apt-get update && apt-get install lsb-release -y && lsb_release -a
@@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND noninteractive

  # define versions to be used (PDAL is not available on Debian, so we
compile it here)
  # https://github.com/PDAL/PDAL/releases
-ARG PDAL_VERSION=2.4.3
+ARG PDAL_VERSION=2.5.5


There is no PDAL in bookworm:

 https://tracker.debian.org/pkg/pdal


STEP 48/59: RUN pip3 install grass-session
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
 python3-xyz, where xyz is the package you are trying to
 install.

 If you wish to install a non-Debian-packaged Python package,
 create a virtual environment using python3 -m venv path/to/venv.
 Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
 sure you have python3-full installed.

 If you wish to install a non-Debian packaged Python application,
 it may be easiest to use pipx install xyz, which will manage a
 virtual environment for you. Make sure you have pipx installed.

 See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python
installation or OS distribution provider. You can override this, at
the risk of breaking your Python installation or OS, by passing
--break-system-packages.
hint: See PEP 668 for the detailed specification.
Error: building at STEP "RUN pip3 install grass-session": while
running runtime: exit status 1

What is the best practice for Debian Dockerfiles here? A venv doesn't
make sense in this context.


The best option is to package all Python modules and install those.

For CI containers you can break the system packages as suggested.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] [release planning] GRASS GIS 8.3.0

2023-06-23 Thread Martin Landa
Hi,

pá 23. 6. 2023 v 10:31 odesílatel Markus Neteler  napsal:

> note: If you believe this is a mistake, please contact your Python
> installation or OS distribution provider. You can override this, at
> the risk of breaking your Python installation or OS, by passing
> --break-system-packages.
> hint: See PEP 668 for the detailed specification.
> Error: building at STEP "RUN pip3 install grass-session": while
> running runtime: exit status 1
>

I think that --break-system-packages could be used in this case. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] [release planning] GRASS GIS 8.3.0

2023-06-23 Thread Markus Neteler
On Fri, Jun 23, 2023 at 6:26 AM Sebastiaan Couwenberg
 wrote:
>
> On 6/23/23 00:00, Markus Neteler wrote:
> > E: Unable to locate package libopenblas-base
>
> That package doesn't exist any more, it was transitional dummy package
> provided by openblas which has been removed in openblas (0.3.21+ds-1).
>
> > https://github.com/OSGeo/grass/actions/runs/5350453362/jobs/9703565807
> >
> > Confused,
> > Markus
> >
> > PS: Shall we ignore that?
>
> The Dockefiles need to be updated to no longer install this package in
> distribution release where it's not available.
>
> The package in Debian just installs libblas-dev.

I am trying to update the Debian Dockerfile:

diff --git a/docker/debian/Dockerfile b/docker/debian/Dockerfile
index 66134a2f67..d697738633 100644
--- a/docker/debian/Dockerfile
+++ b/docker/debian/Dockerfile
@@ -1,5 +1,5 @@
 FROM debian:stable
-# currently Debian 11
+# currently Debian 12

 # docker run -it --rm debian:stable bash
 # apt-get update && apt-get install lsb-release -y && lsb_release -a
@@ -11,7 +11,7 @@ ENV DEBIAN_FRONTEND noninteractive

 # define versions to be used (PDAL is not available on Debian, so we
compile it here)
 # https://github.com/PDAL/PDAL/releases
-ARG PDAL_VERSION=2.4.3
+ARG PDAL_VERSION=2.5.5

 SHELL ["/bin/bash", "-c"]

@@ -43,7 +43,6 @@ RUN apt-get update && apt-get upgrade -y && \
 libjsoncpp-dev \
 libnetcdf-dev \
 libncurses5-dev \
-libopenblas-base \
 libopenblas-dev \
 libopenjp2-7 \
 libopenjp2-7-dev \

So far it seems to be ok but then I get

...
STEP 45/59: RUN apt-get clean -y
--> 60d9dd420330
STEP 46/59: RUN rm -r /src/grass_build/.git
--> c9ea0db622e8
STEP 47/59: WORKDIR /scripts
--> 14099929847b
STEP 48/59: RUN pip3 install grass-session
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python
installation or OS distribution provider. You can override this, at
the risk of breaking your Python installation or OS, by passing
--break-system-packages.
hint: See PEP 668 for the detailed specification.
Error: building at STEP "RUN pip3 install grass-session": while
running runtime: exit status 1

What is the best practice for Debian Dockerfiles here? A venv doesn't
make sense in this context.

Best,
Markus
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev