[Scons-dev] python3-port branch merged to default and then closed
Alexandre Feblot
alexandre at feblot.fr
Tue May 24 04:54:39 EDT 2016
Hi,
definitely not a guru. I did this once, which was enough to get a python
file loaded, and access its classes:
import importlib.machinery
my_module = importlib.machinery.SourceFileLoader('my_module',
'/path/to/my_module.py').load_module()
My_Class = my_module.My_Class
my_class_instance = my_module.My_Class()
2016-05-24 1:39 GMT+02:00 Bill Deegan <bill at baddogconsulting.com>:
> Greetings,
>
> After a bunch of work py2 is passing all tests on python3-port branch.
> So I've merged that to default and closed the python3-port branch.
>
> All further changes/pull requests for py2/3 should be done against default.
>
> Currently the bulk of the py3 issues are the following:
> 1) dynamic loading of python modules (Specifically the tool modules)
> doesn't work with the imp module (which is what's currently used) and works
> differently under python3. I have some trial work using importlib which is
> used when run under python3 (see src/engine/SCons/Tool/__init__.py and
> search for importlib)
> 2) many tests are failing based on unicode/str differences. In many cases
> this is due to diff'ing done in scons's test infrastructure expecting ascii
> string (py2) and not unicode (py3) or byte (py3).
>
> Do we have any importlib guru's around?
>
> -Bill
>
> _______________________________________________
> 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/20160524/1537d076/attachment.html>
More information about the Scons-dev
mailing list