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.
mol
--
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
--
ptxdist mailing list
[email protected]