<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>What's Chris Doing? - Latest Comments</title><link>http://whatschrisdoing.disqus.com/</link><description></description><atom:link href="https://whatschrisdoing.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 27 May 2016 03:38:38 -0000</lastBuildDate><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-2697917164</link><description>&lt;p&gt;Hi, Chris!&lt;br&gt;I want to cross compile the netifaces. The host I used is Ubuntu 64bit， and the target board is the arm board with the linux platform. Follow your steps,  I changed the environment variables as follows:&lt;/p&gt;&lt;p&gt;export PYTHONXCPREFIX=/home/skyblue/a33_linux/a33_new/lichee/out/sun8iw5p1/linux/common/buildroot/target/python2.7.3/&lt;br&gt;export CROSS_COMPILE=arm-none-linux-gnueabi-&lt;br&gt;export CC="${CROSS_COMPILE}gcc -pthread" &lt;br&gt;export LDSHARED="${CC} -shared"&lt;br&gt;export CFLAGS="-I${PYTHONXCPREFIX}/include/python2.7"&lt;br&gt;export LDFLAGS="-L${PYTHONXCPREFIX}/../usr/lib -L${PYTHONXCPREFIX}/lib/python2.7/ -L${PYTHONXCPREFIX}/../lib"&lt;/p&gt;&lt;p&gt;And then I use the command "python &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; build -x bdist_egg --plat-name=linux-arm" to compile the "egg". The "dist/netifaces-0.10.0-py2.7-linux-arm.egg" was producted successfully:&lt;/p&gt;&lt;p&gt;creating 'dist/netifaces-0.10.0-py2.7-linux-arm.egg' and adding 'build/bdist.linux-x86_64/egg' to it&lt;br&gt;removing 'build/bdist.linux-x86_64/egg' (and everything under it)&lt;/p&gt;&lt;p&gt;But the question comed when I copied the egg to the target board and excuted the command "easy_install netifaces-0.10.0-py2.7-linux-arm.egg" . It showed:&lt;/p&gt;&lt;p&gt;Processing dependencies for netifaces==0.10.0&lt;br&gt;Searching for netifaces==0.10.0&lt;br&gt;Reading &lt;a href="https://pypi.python.org/simple/netifaces/" rel="nofollow noopener" target="_blank" title="https://pypi.python.org/simple/netifaces/"&gt;https://pypi.python.org/sim...&lt;/a&gt;&lt;br&gt;Best match: netifaces 0.10.0&lt;br&gt;Downloading &lt;a href="https://pypi.python.org/packages/42/87/9092e7db7ed41fb4685fc8a108b318c09ebc646256de0ded02438b783a86/netifaces-0.10.0.tar.gz#md5=bbe634bd373b3f05df5f4ac23bc92a8f" rel="nofollow noopener" target="_blank" title="https://pypi.python.org/packages/42/87/9092e7db7ed41fb4685fc8a108b318c09ebc646256de0ded02438b783a86/netifaces-0.10.0.tar.gz#md5=bbe634bd373b3f05df5f4ac23bc92a8f"&gt;https://pypi.python.org/pac...&lt;/a&gt;&lt;br&gt;Processing netifaces-0.10.0.tar.gz&lt;br&gt;Writing /tmp/easy_install-6ZyFwD/netifaces-0.10.0/setup.cfg&lt;br&gt;Running netifaces-0.10.0/&lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; -q bdist_egg --dist-dir /tmp/easy_install-6ZyFwD/netifaces-0.10.0/egg-dist-tmp-zaksgi&lt;br&gt;checking for getifaddrs...not found. &lt;br&gt;checking for getnameinfo...not found. &lt;br&gt;checking for socket IOCTLs...not found. &lt;br&gt;checking for optional header files...none found. &lt;br&gt;checking whether struct sockaddr has a length field...no. &lt;br&gt;checking which sockaddr_xxx structs are defined...none! &lt;br&gt;checking for routing socket support...no. &lt;br&gt;checking for sysctl(CTL_NET...) support...no. &lt;br&gt;checking for netlink support...no. &lt;br&gt;checking for RTF_IFSCOPE...no. &lt;br&gt;unable to execute arm-none-linux-gnueabi-gcc: No such file or directory&lt;br&gt;error: Setup script exited with error: command 'arm-none-linux-gnueabi-gcc' failed with exit status 1&lt;/p&gt;&lt;p&gt;It seems that easy_install had analized the egg, but it didn't regonize the result I had compiled, so it continued to download the source and tried to cross compile it, which of course would fail.&lt;/p&gt;&lt;p&gt;In fact, not only netifaces, I have try other extensions, psutil for example, the result is the same. I wonder which step I have go wrong?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">men li</dc:creator><pubDate>Fri, 27 May 2016 03:38:38 -0000</pubDate></item><item><title>Re: ASP.NET MVC and Ionic.Zip</title><link>http://whatschrisdoing.com/blog/2010/03/22/asp-net-mvc-and-ionic-zip/#comment-2026407743</link><description>&lt;p&gt;Hi,&lt;br&gt;5 years later, principles of inheriting ZipFileResult is still useful. But I would do some changes:&lt;br&gt;1 - replacing Ionic.Zip by fx 4.5 System.IO.Compression.ZipArchive. (Have not yet checked it works.) Ionic.Zip have a race condition bug causing file to get corrupted once compressed in some edge cases (see issue 14087 on its codeplex site), and it looks no more maintained.&lt;/p&gt;&lt;p&gt;2 - Rather than exposing "ZipFile" class outside of ZipFileResult (constructor argument), I would provide some poco argument for telling the zipFileResult where to find the bytes / file names / paths it has to put in the zip. This would avoid leaking of the zip lib outside of the ZipFileResult.&lt;/p&gt;&lt;p&gt;3 - Use MVC (5 but probably 3+) ZipFileResult headers handling (calling base constructor with contentType, setting FileDownloadName property, no more clearing and ending response, ...)&lt;/p&gt;&lt;p&gt;Regards.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Frédéric Delaporte</dc:creator><pubDate>Fri, 15 May 2015 06:04:39 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-1976866180</link><description>&lt;p&gt;Cannot make it work! Help Please&lt;/p&gt;&lt;p&gt;I am using the default &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; for a demo c module like below&lt;/p&gt;&lt;p&gt;from distutils.core import setup, Extension&lt;/p&gt;&lt;p&gt;module1 = Extension('demo',&lt;br&gt;                    sources = ['demo.c'])&lt;/p&gt;&lt;p&gt;setup (name = 'PackageName',&lt;br&gt;       version = '1.0',&lt;br&gt;       description = 'This is a demo package',&lt;br&gt;       ext_modules = [module1])&lt;/p&gt;&lt;p&gt;I have exported the environment variable as suggested above to the android arm abi toolchain. I have also setup setuptools for android as suggested on the setup tools install instructions. The {PYTHONXCPREFIX}/lib contains python2.7 folder on the android toolchain I have, I have used this target python to run run the command python &lt;a href="http://easy_install.py" rel="nofollow noopener" target="_blank" title="easy_install.py"&gt;easy_install.py&lt;/a&gt; to setup the setuptools. But I am not sure how to build my demo module using disutilscross. Do I need to modify my &lt;a href="http://setup.py?" rel="nofollow noopener" target="_blank" title="setup.py?"&gt;setup.py?&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sukhvinder Pal Singh</dc:creator><pubDate>Mon, 20 Apr 2015 02:23:27 -0000</pubDate></item><item><title>Re: ASP.NET MVC and Ionic.Zip</title><link>http://whatschrisdoing.com/blog/2010/03/22/asp-net-mvc-and-ionic-zip/#comment-1833549055</link><description>&lt;p&gt;I also have a problem using this code like Jim. I just create a txt file to supplement the error given.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.boostmydatpiff.org/downloads/" rel="nofollow noopener" target="_blank" title="http://www.boostmydatpiff.org/downloads/"&gt;Buy Datpiff Downloads&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Camille Ford</dc:creator><pubDate>Tue, 03 Feb 2015 19:09:30 -0000</pubDate></item><item><title>Re: Notes on localization and jQueryUI Datepicker.</title><link>http://whatschrisdoing.com/blog/2010/06/04/notes-on-localization-and-jqueryui-datepicker/#comment-1038625108</link><description>&lt;p&gt;Excellent, thanks for the tip!&lt;/p&gt;&lt;p&gt;Only issue is that line 7 should read&lt;/p&gt;&lt;p&gt;retval = $.datepicker.regional[region[0]];&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M. Korman</dc:creator><pubDate>Wed, 11 Sep 2013 12:15:42 -0000</pubDate></item><item><title>Re: HOWTO Cross Compile Python 2.5</title><link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-847418556</link><description>&lt;p&gt;I want to cross-compile Python for a embedded system. The target is a PPC but DOES NOT run linux. Instead it runs a lesser known though capable embedded OS and I was wondering if anyone has attempted porting Python to a non-*nix platform before.&lt;/p&gt;&lt;p&gt;I have the cross compilation tool chain installed on a linux machine so I should be able to run the configure script pointing to the target OS/compiler headers and libraries. Also it seems that the Python configure script does not support options such &lt;br&gt;as –with-headers, –with-binutils that would allow me to point it to the &lt;br&gt;correct headers.&lt;/p&gt;&lt;p&gt;Has anybody done a port like this?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AB</dc:creator><pubDate>Sat, 30 Mar 2013 17:12:32 -0000</pubDate></item><item><title>Re: GNU Make, win32 and sed</title><link>http://whatschrisdoing.com/blog/2006/01/26/gnu-make-win32-and-sed/#comment-710815498</link><description>&lt;p&gt;Ok. I found the solution that works in both versions.&lt;/p&gt;&lt;p&gt;Using two backslashes should be ok.&lt;br&gt;But to fix MSYS version, you have to enter \x5c\x5c.&lt;br&gt;Similarly, for double quotes, I use \x22.&lt;/p&gt;&lt;p&gt;And, this of course works in every other sed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Field</dc:creator><pubDate>Thu, 15 Nov 2012 05:14:03 -0000</pubDate></item><item><title>Re: GNU Make, win32 and sed</title><link>http://whatschrisdoing.com/blog/2006/01/26/gnu-make-win32-and-sed/#comment-710812436</link><description>&lt;p&gt;Wow. This was long ago.&lt;br&gt;But, the problem still exists. I know, because I just encountered it.&lt;/p&gt;&lt;p&gt;Any solution for unifying whose two (GnuWin sed and MSYS sed)?&lt;br&gt;I not sure ever which one gets called (usually MSYS version from Git for Windows).&lt;/p&gt;&lt;p&gt;Thanks anyway. Now I know I'm not the only one.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Field</dc:creator><pubDate>Thu, 15 Nov 2012 05:03:42 -0000</pubDate></item><item><title>Re: ASP.NET MVC and Ionic.Zip</title><link>http://whatschrisdoing.com/blog/2010/03/22/asp-net-mvc-and-ionic-zip/#comment-581831758</link><description>&lt;p&gt;using your exact example.. I get an error at the zip.AddEntry line of code. There is no matching overload method. A better example for this would be adding a zip file from a file already in your database and or creating a txt file grammatically and then adding it to the zip file for the user to download.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Mon, 11 Jun 2012 17:03:17 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831803</link><description>&lt;p&gt;Chris,&lt;/p&gt;&lt;p&gt;do you have an idea, how to solve this issue: &lt;a href="https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion" rel="nofollow noopener" target="_blank" title="https://groups.google.com/d/topic/comp.lang.python/0rDWl2d8PDY/discussion"&gt;https://groups.google.com/d...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yegor Yefremov</dc:creator><pubDate>Tue, 08 May 2012 14:07:33 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831797</link><description>&lt;p&gt;Chris: are you going to provide your slides for PyCon before the event itself?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yegor Yefremov</dc:creator><pubDate>Tue, 03 Jan 2012 12:08:16 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831802</link><description>&lt;p&gt;I've got it!!!&lt;/p&gt;&lt;p&gt;The first problem with checks was, that &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; while checking for headers has also tried to execute the binary. That was not so good to execute arm binary on x86 ;-)&lt;/p&gt;&lt;p&gt;The second is trickier as it concerns library paths. During linking the only -L option I see is -L/usr/lib despite specifying LDFLAGS. This output of the linker_so at the biginning of &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt;:&lt;/p&gt;&lt;p&gt;Linker_so: ['/home/user/Documents/projects/br-queue-python/output/host/usr/bin/arm-none-linux-gnueabi-gcc', '-shared', '-L/home/user/Documents/projects/br-queue-python/output/host/usr/arm-unknown-linux-gnueabi/sysroot/lib', '-L/home/user/Documents/projects/br-queue-python/output/host/usr/arm-unknown-linux-gnueabi/sysroot/usr/lib']&lt;/p&gt;&lt;p&gt;at the end I solved this by providing library_dirs myself. Any idea?&lt;/p&gt;&lt;p&gt;I wish you good luck for your PyCon talk. And I hope Python devs will understand the difference between compilation and cross-compilation. And some common framework linke autotools should be also available, so there is no need to write own checks.&lt;/p&gt;&lt;p&gt;Thanks for helping. Happy New Year!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yegor Yefremov</dc:creator><pubDate>Thu, 29 Dec 2011 14:19:00 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831793</link><description>&lt;p&gt;No. That didn't help.&lt;/p&gt;&lt;p&gt;define PYTHON_NETIFACES_BUILD_CMDS&lt;br&gt;        (cd $(@D); \&lt;br&gt;                CC="$(TARGET_CC)"               \&lt;br&gt;                CFLAGS="$(TARGET_CFLAGS)"       \&lt;br&gt;                PYTHONXCPREFIX="$(HOST_DIR)/usr/" \&lt;br&gt;                LDSHARED="$(TARGET_CC) -shared" \&lt;br&gt;                LDFLAGS="-L$(HOST_DIR)/lib -L$(HOST_DIR)/usr/lib"         \&lt;br&gt;        $(HOST_DIR)/usr/bin/python &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; build -x)&lt;br&gt;endef&lt;/p&gt;&lt;p&gt;Build result:&lt;/p&gt;&lt;p&gt;python-netifaces 0.6 Building&lt;br&gt;(cd /home/user/Documents/projects/br-queue-python/output/build/python-netifaces-0.6; CC="/home/user/Documents/projects/br-queue-python/output/host/usr/bin/arm-none-linux-gnueabi-gcc" CFLAGS="-pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" PYTHONXCPREFIX="/home/user/Documents/projects/br-queue-python/output/host/usr/" LDSHARED="/home/user/Documents/projects/br-queue-python/output/host/usr/bin/arm-none-linux-gnueabi-gcc -shared" LDFLAGS="-L/home/user/Documents/projects/br-queue-python/output/host/lib -L/home/user/Documents/projects/br-queue-python/output/host/usr/lib" /home/user/Documents/projects/br-queue-python/output/host/usr/bin/python &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; build -x)&lt;br&gt;running build&lt;br&gt;Setting prefix&lt;br&gt;Setting prefix&lt;br&gt;running build_ext&lt;br&gt;checking for getifaddrs... not found. (cached)&lt;br&gt;checking for getnameinfo... not found. (cached)&lt;br&gt;checking for socket IOCTLs... not found. (cached)&lt;br&gt;checking for optional header files... netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h. (cached)&lt;br&gt;checking whether struct sockaddr has a length field... no. (cached)&lt;br&gt;checking which sockaddr_xxx structs are defined... at ax25 in in6 ipx un ash ec ll atmpvc atmsvc dn irda llc. (cached)&lt;br&gt;building 'netifaces' extension&lt;br&gt;/home/user/Documents/projects/br-queue-python/output/host/usr/bin/arm-none-linux-gnueabi-gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -I/home/user/Documents/projects/br-queue-python/output/host/usr/include/python2.7 -c netifaces.c -o build/temp.linux-i686-2.7/netifaces.o&lt;br&gt;netifaces.c:143:6: error: #error You need to add code for your platform.&lt;br&gt;netifaces.c:268:1: warning: 'string_from_sockaddr' defined but not used&lt;br&gt;netifaces.c:360:1: warning: 'add_to_family' defined but not used&lt;br&gt;error: command '/home/user/Documents/projects/br-queue-python/output/host/usr/bin/arm-none-linux-gnueabi-gcc' failed with exit status 1&lt;/p&gt;&lt;p&gt;I have such a premonition, that CC won't be honored. For the test I just renamed the gcc binary and build_ext was not complaining during the test. The only thing that failed was netifaces.c compilation, because of absent compiler binary.&lt;/p&gt;&lt;p&gt;The test_build method in netifaces &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; has tree return possibilities:&lt;br&gt;- no error&lt;br&gt;- CompileError&lt;br&gt;- DistutilsExecError&lt;/p&gt;&lt;p&gt;But since the return value is boolean I don't know which part failed. Print is not visible in this method. Will have to dig deeper.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yegor Yefremov</dc:creator><pubDate>Thu, 29 Dec 2011 08:49:45 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581948698</link><description>&lt;p&gt;Yegor: It looks like you are missing -L options in your LDFLAGS. It should be LDFLAGS="-L$(HOST_DIR)/lib/ -L$(HOST_DIR)/usr/lib/".&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Lambacher</dc:creator><pubDate>Wed, 28 Dec 2011 21:10:02 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831801</link><description>&lt;p&gt;Hi Chris,&lt;/p&gt;&lt;p&gt;I've a problem cross-compiling netifaces from Alastair Houghton for ARM using Buildroot. I've installed distutilscross and specified all needed environment variables, but setuptools 0.6c11 doesn't seem to be interested in specified CC. The -x option will be recognized, but all netifaces tests fail:&lt;/p&gt;&lt;p&gt;running build&lt;br&gt;Setting prefix&lt;br&gt;Setting prefix&lt;br&gt;running build_ext&lt;br&gt;checking for getifaddrs... not found. (cached)&lt;br&gt;checking for getnameinfo... not found. (cached)&lt;br&gt;checking for socket IOCTLs... not found. (cached)&lt;/p&gt;&lt;p&gt;That is how I configure netifaces for cross-compiling:&lt;/p&gt;&lt;p&gt;define PYTHON_NETIFACES_BUILD_CMDS&lt;br&gt;(cd $(@D);\&lt;br&gt;CC="$(TARGET_CC) -pthread" \&lt;br&gt;LDSHARED="$(TARGET_CC) -pthread -shared" \&lt;br&gt;PYTHONXCPREFIX="$(HOST_DIR)/usr/" \&lt;br&gt;LDFLAGS="$(HOST_DIR)/lib/ $(HOST_DIR)/usr/lib/" \&lt;br&gt;$(HOST_DIR)/usr/bin/python &lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt; build -x)&lt;br&gt;endef&lt;/p&gt;&lt;p&gt;Do you have any idea?&lt;/p&gt;&lt;p&gt;Thank you in advance and merry Xmas and Happy New Year!&lt;/p&gt;&lt;p&gt;P.S. such statement as --plat-name=linux-arm will be not recognized&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yegor Yefremov</dc:creator><pubDate>Wed, 28 Dec 2011 08:14:01 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831799</link><description>&lt;p&gt;Hi Chris. Sorry again for the noise but I've just made an important discovery. Whilst patching this feature into Python directly, I wondered where the default values for PREFIX and EXEC_PREFIX come from. It turns out you can already override these by setting the PYTHONHOME environment variable. The catch is that all the Python stuff you need to complete the build (e.g. setuptools) needs to be installed in the prefix as the only files it touches from the host are the native Python executable and library. If the build needs to execute any native Python extensions then this probably won't work but I doubt any Python build system does this. In the Gentoo case, it will automatically install prerequisites like setuptools for you. I'll play with this more tomorrow.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Le Cuirot</dc:creator><pubDate>Wed, 28 Dec 2011 00:14:55 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831798</link><description>&lt;p&gt;I'll be doing a talk on this stuff at PyCon 2012: &lt;a href="https://us.pycon.org/2012/schedule/presentation/11/" rel="nofollow noopener" target="_blank" title="https://us.pycon.org/2012/schedule/presentation/11/"&gt;https://us.pycon.org/2012/s...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Lambacher</dc:creator><pubDate>Mon, 26 Dec 2011 22:07:32 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831796</link><description>&lt;p&gt;Hi James, setuptools is required for distutils. You should be able to get non-setuptools packages to work using:&lt;/p&gt;&lt;p&gt;python -c "import setuptools; execfile('&lt;a href="http://setup.py" rel="nofollow noopener" target="_blank" title="setup.py"&gt;setup.py&lt;/a&gt;')" -x build&lt;/p&gt;&lt;p&gt;You can substitute any other command for build as you require (including bdist_egg).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Lambacher</dc:creator><pubDate>Mon, 26 Dec 2011 22:06:36 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831791</link><description>&lt;p&gt;Ah it works if the package imports setuptools instead of distutils. I was trying it with rdiff-backup, which imports distutils. I gather entry points are specific to setuptools. Is there any way to make it magically work in this situation?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Le Cuirot</dc:creator><pubDate>Mon, 26 Dec 2011 21:07:17 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831792</link><description>&lt;p&gt;Does this still work for you? I've tried it on Gentoo (Python 2.6 and 2.7) and Ubuntu (Python 2.6) and it doesn't load automatically as the -x option is missing. I've filled an issue at &lt;a href="https://bitbucket.org/lambacck/distutilscross/issue/1" rel="nofollow noopener" target="_blank" title="https://bitbucket.org/lambacck/distutilscross/issue/1"&gt;https://bitbucket.org/lamba...&lt;/a&gt; but it's been a long time since there were any commits.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Le Cuirot</dc:creator><pubDate>Mon, 26 Dec 2011 15:08:46 -0000</pubDate></item><item><title>Re: HOWTO Cross Compile Python 2.5</title><link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-581831736</link><description>&lt;p&gt;How I could cross-compile PyBluez module for ARM platform? Any hints?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fran</dc:creator><pubDate>Thu, 18 Aug 2011 08:06:14 -0000</pubDate></item><item><title>Re: Cross Compiling Python Extensions</title><link>http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/#comment-581831790</link><description>&lt;p&gt;How I could cross-compile PyBluez module for ARM platform? I've been searching information on Internet but I haven't found anything.&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fran</dc:creator><pubDate>Wed, 03 Aug 2011 10:06:54 -0000</pubDate></item><item><title>Re: HOWTO Cross Compile Python 2.5</title><link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-581831735</link><description>&lt;p&gt;@Mahendra you might want to look at &lt;a href="http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/" rel="nofollow noopener" target="_blank" title="http://whatschrisdoing.com/blog/2009/10/16/cross-compiling-python-extensions/"&gt;http://whatschrisdoing.com/...&lt;/a&gt; which makes the process simpler.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Lambacher</dc:creator><pubDate>Wed, 02 Mar 2011 19:53:50 -0000</pubDate></item><item><title>Re: HOWTO Cross Compile Python 2.5</title><link>http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/#comment-581831733</link><description>&lt;p&gt;Hello Chris,&lt;/p&gt;&lt;p&gt;I already have Python 2.6 cross compiled for ARM. However, now I am trying to cross compile "Python Image Library" and getting stuck with the same.&lt;/p&gt;&lt;p&gt;Do you have any idea as to how can I cross-compile PIL. Can you help me?&lt;/p&gt;&lt;p&gt;Thanking in anticipation.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mahendra</dc:creator><pubDate>Tue, 01 Mar 2011 09:28:09 -0000</pubDate></item><item><title>Re: Protecting Plone Registration Forms with ReCAPTCHA</title><link>http://whatschrisdoing.com/blog/2009/02/24/protecting-plone-registration-forms-with-recaptcha/#comment-581831780</link><description>&lt;p&gt;Hi Sam,&lt;/p&gt;&lt;p&gt;I am not sure I understand what you mean about the form validation for contact-info. It's been a while since I did it, but all the info you need to implement captcha is contained in here. You will need to look at other documentation for anything else.&lt;/p&gt;&lt;p&gt;-Chris&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christopher Lambacher</dc:creator><pubDate>Thu, 23 Sep 2010 13:43:05 -0000</pubDate></item></channel></rss>