Hi, Emmanuel Favre-Nicolin wrote:
I am way behind on matplotlib version (still on 0.82) but here is an example setup.py to freeze the matplotlib sample wxcursor_demo.py (included just in case it changed).Le lundi 25 décembre 2006 16:00, Allan Noriel Estrella a écrit :Has anyone tried freezing matplotlib embedded in a wx app (using py2ece, cx_freeze or pyinstaller)? The setup.py in the FAQ seems to be outdated. I want to freeze the embedding_in_wx.py in the examples. Do you have any suggestions or cookbook steps that I can follow?it looks there were no answer to your question!I tried too the FAQ http://matplotlib.sourceforge.net/faq.html#PY2EXEand it does not work at least with my enthough installation directories seems to be very different from the one suggested.I also tried http://www.py2exe.org/index.cgi/MatPlotLib without successI tried the simpelst thingfrom pylab import * plot([1,2,3]) show() no chance!I don't know if someone could help, is there a better backend for freezing, maybe wxpython?Someone already succeded with a recent matplotlib ? I'm using 0.87.3 (on windows)
I just have no time yet to upgrade to a newer version, especially as I want to upgrade to wxPython 2.8 at the same time.
Here a fews things I recall from my tests with 0.87.3:- you need to use the unicode build of wxPython (also this might have or will change). - matplotlib data folder handling (see in setup.py commented line in data_files section) - numpy (just tried it building against 87.3 but get errors related to numpy, one probably has to force more inclusions)
Hope this helps Werner
setup.py
Description: application/python
wxcursor_demo.py
Description: application/python
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users