It's not hard to write a Python package that can be installed into an interpreter or virtual environment with pip. This video shows a simple example of how to lay out a project's source code and set ...
I tried to use easy_install to build lxml and noticed that it was picking up MacPorts XML/XSLT libs in /opt/local/lib first. I'm not entirely sure if that would be OK with a Framework build of Python.