|
Boost-Build : |
From: Reece Dunn (msclrhd_at_[hidden])
Date: 2006-04-16 17:51:51
Hi all,
I am trying an experiment to get the utils/set.jam module ported over to Python and
the other modules use it like a normal import statement. However, I have run into a
few problems.
I can get the simple pytest.py/pytest.jam program working, but:
[1] The directory for the boost build code isn't added to sys.path.
[2] How do I do the equivalent of
from utils import set
in BJam+Python
[3] When I do:
PYTHON_IMPORT_RULE set : difference : Python : difference ;
that rule is not picked up by the:
import set ;
BJam decleration, so set.difference doesn't call the set.py implementation!
[4] Why do I need PYTHON_IMPORT_RULE in the first place?! What I want to do is
have set.py implement difference, intersect and equal, remove the set.jam file and
then do something like:
pyimport set ;
or
pyimport set : difference ;
and then be able to do:
set.difference a : b
When we can do this, it should then be possible to start migrating the lower layers
over to Python. Or am I missing something?
- Reece
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk