I'm experimenting with running Cython from a zip file containing the minimum code required to get a fully functional Cython compiler.
So far, I can make a zipfile of about 290K $ ./mklite.sh ../cython-devel $ ls -alh cython.zip -rw-r--r--. 1 dalcinl users 289K 2009-12-17 14:01 cython.zip Then I can run cython from the zip file setting PYTHONPATH and using 'python -m' $ touch tmp.pyx $ PYTHONPATH=./cython.zip python -m cython tmp.pyx Unable to hash scanner source file ([Errno 20] Not a directory: '/u/dalcinl/Devel/Cython/LITE/cython.zip/Cython/Compiler/Lexicon.py') Creating lexicon... Done (0.15 seconds) Warning: Unable to save pickled lexicon in /u/dalcinl/Devel/Cython/LITE/cython.zip/Cython/Compiler/Lexicon.pickle but these warnings are REALLY annoying. Assuming I could determine in Cython sources that Cython is being used from a zipfile (ideas?) ... Could I add some hackery to silent these annoying warnings? -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
