[Scons-dev] 1st try of scons hg default on python3

Bill Deegan bill at baddogconsulting.com
Thu May 26 12:43:39 EDT 2016


Yup. That's expected.
See my earlier email about merging to default.
It should work under py2 though.

-Bill

On Thu, May 26, 2016 at 7:05 AM, Neal Becker <ndbecker2 at gmail.com> wrote:

> When I try my build on /usr/bin/python3 (fedora linux python3.4) it fails:
>
> /usr/bin/python3 ~/scons-new/bootstrap.py
> /usr/bin/python3 /home/nbecker/scons-new/bootstrap/src/script/scons.py
> scons: Reading SConscript files ...
> PYTHONINC: /usr/include/python3.4m
> 3
> EXT: .cpython-34m.so
> AttributeError: 'module' object has no attribute 'generate':
>   File "/home/nbecker/interference/SConstruct", line 85:
>     env = Environment (ENV = {'PATH' : os.environ['PATH']},
> CXXFLAGS=cxxflags, SHCXXFLAGS=shcxxflags, LIBPATH=[NDARRAYLIBPATH,
> BOOSTLIBPATH, IPPLIBPATH, MKLPATH, ACMLLIBPATH], CPPPATH=[LOCALBOOST,
> NDARRAYINC, BOOSTINC, PYTHONINC, NUMPYINC, EIGENINC, IPPINC, MKLINC,
> ACMLINCLUDE],  RPATH=[NDARRAYLIBPATH, BOOSTLIBPATH, IPPLIBPATH, MKLPATH,
> ACMLLIBPATH])
>   File "/home/nbecker/scons-new/bootstrap/src/engine/SCons/Environment.py",
> line 982:
>     apply_tools(self, tools, toolpath)
>   File "/home/nbecker/scons-new/bootstrap/src/engine/SCons/Environment.py",
> line 107:
>     env.Tool(tool)
>   File "/home/nbecker/scons-new/bootstrap/src/engine/SCons/Environment.py",
> line 1789:
>     tool(self)
>   File "/home/nbecker/scons-
> new/bootstrap/src/engine/SCons/Tool/__init__.py", line 225:
>     self.generate(env, *args, **kw)
>   File
> "/home/nbecker/scons-new/bootstrap/src/engine/SCons/Tool/default.py",
> line 40:
>     for t in SCons.Tool.tool_list(env['PLATFORM'], env):
>   File "/home/nbecker/scons-
> new/bootstrap/src/engine/SCons/Tool/__init__.py", line 1162:
>     ], env)
>   File "/home/nbecker/scons-
> new/bootstrap/src/engine/SCons/Tool/__init__.py", line 1029:
>     return list(filter (ToolExists, tools))
>   File "/home/nbecker/scons-
> new/bootstrap/src/engine/SCons/Tool/__init__.py", line 1028:
>     return Tool(tool).exists(env)
>   File "/home/nbecker/scons-
> new/bootstrap/src/engine/SCons/Tool/__init__.py", line 108:
>     self.generate = module.generate
>
>
> When run using python3.5 from my anaconda install it seems to succeed:
>
> (py35)[nbecker at nbecker2 interference]$ python3 ~/scons-new/bootstrap.py
> /home/nbecker/anaconda3/envs/py35/bin/python3 /home/nbecker/scons-
> new/bootstrap/src/script/scons.py
> scons: Reading SConscript files ...
> PYTHONINC: /home/nbecker/anaconda3/envs/py35/include/python3.5m
> 3
> EXT: .cpython-35m-x86_64-linux-gnu.so
> Checking for C header file unuran.h... (cached) yes
> found unuran.h
> HAVE_UNURAN= 1
> Checking for C header file mkl_vsl.h... (cached) yes
> found mkl_vsl.h
> HAVE_MKL= 1
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `_lms.cpython-35m-x86_64-linux-gnu.os' is up to date.
> ...
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160526/086a98e5/attachment.html>


More information about the Scons-dev mailing list