Re: python3-port branch merged to default and then closed

Alexandre Feblot <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <CAG2nN9fMRVjirtQUdRvK+g3Wc9qe2zkQST1X-o6yuWc-gxAOSQ@mail.gmail.com>
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-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org>:

> 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
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>

_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.