You should look at this blog entry: http://www.voidspace.org.uk/python/weblog/arch_d7_2006_02_11.shtml#e222 But if you have the original .py it's quite insane to want to hack the .pyc only for porting it under others architectures. Instead, use setuptools. -- sebastien - http://seb.dbzteam.com