SynoCommunity/spksrc — Issue #20: Can't compile not pure python modules
Author: Diaoul
Created: 2011-11-13 23:35:32+00:00
State: open
Labels: cross, Urgent

For example setuptools requires a shared lib `/home/spksrc/spksrc/spk/python27/work-88f6281/Python-2.7.2/build/lib.linux-i686-2.7/time.so` which is made for the requested target arch (88f6281in my case) not host arch (x86 in my case)

Traceback (most recent call last):
File "setup.py", line 12, in
from setuptools import setup, find_packages
File "/home/spksrc/spksrc/spk/python27/work-88f6281/setuptools-0.6c11/setuptools/__init__.py", line 2, in
from setuptools.extension import Extension, Library
File "/home/spksrc/spksrc/spk/python27/work-88f6281/setuptools-0.6c11/setuptools/extension.py", line 2, in
from dist import _get_unpatched
File "/home/spksrc/spksrc/spk/python27/work-88f6281/setuptools-0.6c11/setuptools/dist.py", line 6, in
from setuptools.command.sdist import sdist
File "/home/spksrc/spksrc/spk/python27/work-88f6281/setuptools-0.6c11/setuptools/command/sdist.py", line 5, in
import os, re, sys, pkg_resources
File "/home/spksrc/spksrc/spk/python27/work-88f6281/setuptools-0.6c11/pkg_resources.py", line 16, in
import sys, os, zipimport, time, re, imp
ImportError: /home/spksrc/spksrc/spk/python27/work-88f6281/Python-2.7.2/build/lib.linux-i686-2.7/time.so: cannot open shared object file: No such file or directory
make[2]: *** [myCompile] Erreur 1
make[2]: quittant le répertoire « /home/spksrc/spksrc/cross/setuptools »
make[1]: *** [depend_target] Erreur 2
make[1]: quittant le répertoire « /home/spksrc/spksrc/spk/python27 »
make: *** [python27] Erreur 2

Tried to set LD_LIBRARY_PATH without luck.
I'll try to fix that copying native libs to work dir temporary while installing a module. So I fake python.