Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2020 19:03:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 241463] devel/scons: flavor scons for python3
Message-ID:  <bug-241463-21822-tpW0oUzs30@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241463-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241463-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241463

--- Comment #25 from Ronald Klop <ronald-lists@klop.ws> ---
To all cc's on this issue.

The difficulty is not to run scons with python 2 or 3. Since scons 3.x supp=
orts
both python versions. See https://scons.org/tag/releases.html.

The difficulty is that the SConstruct files of other ports are written in
python 2 (like mongodb36) or 3 (like upcoming mongodb42). Our current ports
framework has no way to create both versions of scons.

We can't create ports using scons with python3 as long as there are ports
needing scons with python2.

The first line of /usr/local/bin/scons says "#!/usr/local/bin/python2.7". T=
hat
is the only line which need to be changed to run with python3. But we curre=
ntly
can't do that.

My solution would be to flavor the port and create a py27-scons and py37-sc=
ons.
The pkg build infrastructure can than use the one it needs.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241463-21822-tpW0oUzs30>