Michael Olbrich wrote:
Hi,

On Thu, Aug 21, 2008 at 03:03:04PM -0600, Gary Thomas wrote:
I'd like to add a python package to my PTXdist tree.  The
key thing will be to run
  python setup.py install
in the target-install step in such a way that any non-python
pieces get built correctly.  For example, trying to install
Cheetah requires the use of the target GCC in order to build
a [binary] wrapper.

Ideas/help?

in the compile stage:
$(CROSS_ENV) PATH=$(CROSS_PATH) LDSHARED="$(CROSS_CC) -shared" \
        python setup.py build

The LDSHARED stuff is a hack. Without it setup.py picks the correct
compiler from $(CROSS_ENV) but uses "gcc -shared" to link.
The quotes will get lost at some point so "-shared" become a parameter
for CROSS_CC.

in the install stage:
python setup.py install --prefix=$(SYSROOT)/usr

in the targetinstall stage:
@$(call install_copy, libpv, 0, 0, 0644, \
        $(SYSROOT)/usr/lib/python2.4/site-packages/libfoo.so, \
        /usr/lib/python2.4/site-packages/libfoo.so)
for all libs.

It's not perfect but it should work.

This is a great start, thanks.

Perhaps you have a package that you could share the actual files for?
One that's not in the SVN tree...

I'll see what I can do with these ideas.



--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

--
ptxdist mailing list
[email protected]

Reply via email to