Running setup.py on Windows, non-default paths (via the --home option) produces an error that had me stumped for the longest time:
byte-compiling C:\Software\ELog\xampplite\htdocs\osetology_wordpress\wp-content\plugins\lib\python\pyx\siteconfig.py to siteconfig.pyc
Sorry: ValueError: ('invalid \x escape',)
This is solveable by a simple change in the type of string used in the configuration to raw:
Change line 131 of setup.py, i.e. the "def run(self)" for "class pyx_install_data(install_data)":
self.siteconfiglines.append("%s = r'%s'\n" % (siteconfignames[files], dir))
This issue has been resolved by the recent release 0.11, which removed siteconfig altogether. PyX data files are now placed along the modules as it is common practice in Python and most supported by distutils, setuptools and the like.