[Scons-dev] Python 3 compatability... RFH (request for help)

Russel Winder russel at winder.org.uk
Fri Apr 7 11:59:45 EDT 2017


On Fri, 2017-04-07 at 14:58 +0100, Russel Winder wrote:
> 
[…]
> I can spare a bit of time to make anything D related not fail. There
> is
> a feature of Dub builds that really could with being ported to SCons,
> Meson, and CMake.
> 
> I'll just give it a go, if there are any failures, I'll send in a
> pull
> request.
> 
> I will be running on Python 3.6.1 though, but I can also test on
> 3.5.3.

All the D tests pass with Python 3.6.1 on Fedora Rawhide. Which is
nice.

I have a project (OK I'm doing Factorial in D, see https://github.com/r
ussel/Factorial/tree/master/D) that builds and cleans fine with Python
2. It cleans fine with Python 3 (after a Python 2 build), but will not
build with Python 3. I get:

|> scons_py3 --tree=all
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [factorial_test] TypeError : function takes exactly 5
arguments (1 given)
+-test
  +-factorial_test
    +-factorial.d
    +-ut_main.d
      +-factorial.d
      +-/home/russel/.dub/packages/unit-threaded-0.7.11/unit-
threaded/gen_ut_main
scons: building terminated because of errors.

If someone can give me direction how to find the problem, I'll try and
make a failing test.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20170407/1bb66f8d/attachment.pgp>


More information about the Scons-dev mailing list