Den sön 29 juni 2025 kl 13:38 skrev Branko Čibej <br...@apache.org>:

> On 27. 6. 25 13:58, dsahlb...@apache.org wrote:
> > Author: dsahlberg
> > Date: Fri Jun 27 11:58:00 2025
> > New Revision: 1926750
> >
> > URL:http://svn.apache.org/viewvc?rev=1926750&view=rev
> > Log:
> > Start describing the CMake build system in README:
> > Re-number existing chapters about SCons
> > Add a new subchapter about CMake
> >
> > Modified:
> >      serf/trunk/README
>
> [...]
>
> > -1.1. SCons build system
> > +1.1 Build systems
> >
> > -Apache Serf uses SCons 2.3 for its build system. If it is not installed
> > +Apache Serf can use either SCons or CMake. Both build systems should
> offer
> > +the same features.
> > +
> > +1.1.1 SCons build system
> > +
> > +You must use at least SCons version 2.3. If it is not installed
>
> I noticed that SCons 2.3.0 does not understand the -isystem flag that's
> supported by gcc and clang. These days it's likely that we'll find
> -isystem in some pkg-info file (in fact, that's what tickled me me to
> TIL), so really, scons-2.3.5 should be the minimum.
>
> That said: those versions require Python2 and won't work with Python 3.
>
> >   on your system, then you can install it onto your system. If you do not
> >   have permissions, then you can download and install the "local"
> >   version into your home directory. When installed privately, simply
> > @@ -28,7 +33,7 @@ Fetch the scons-local package:
> >     http://prdownloads.sourceforge.net/scons/scons-local-2.3.0.tar.gz
>
> Another option is to just create a Python virtual environment and then
> 'pip install scons', that requires no privileges and will install a
> SCons package that's appropriate to the installed version of Python.
>
>
> -- Brane
>

Thanks for the hints! Does this make sense?

[[[
C:\dev\serf_trunk>svn diff
Index: README
===================================================================
--- README      (revision 1926861)
+++ README      (working copy)
@@ -23,7 +23,7 @@

 1.1.1 SCons build system

-You must use at least SCons version 2.3. If it is not installed
+You must use at least SCons version 2.3.5. If it is not installed
 on your system, then you can install it onto your system. If you do not
 have permissions, then you can download and install the "local"
 version into your home directory. When installed privately, simply
@@ -30,9 +30,20 @@
 create a symlink for 'scons' in your PATH to /path/to/scons/scons.py.

 Fetch the scons-local package:
-  http://prdownloads.sourceforge.net/scons/scons-local-2.3.0.tar.gz
+  http://prdownloads.sourceforge.net/scons/scons-local-2.3.5.tar.gz
+
+Alternatively create a virtual Python environment and install SCons via
+pip (replace the path ~/scons_venv with your preferred path):

+  $ python -m venv ~/scons_venv
+  $ ~/scons_venv/bin/pip install scons

+In the build instructions below, make sure to include the full path to your
+virtual environment:
+
+  $ ~/scons_venv/bin/scons [...see below...]
+
+
 1.1.2 Building Apache Serf using SCons

 To build serf:
]]]

Cheers,
Daniel

Reply via email to