Lisandro Dalcín wrote: > 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?
I wouldn't even consider that hackery...the Python warnings module even has explicit code for temporary or permanent warning silencing (though I guess that might not be Py2.3). -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
