From: Nathan R. Y. <na...@ye...> - 2006-08-17 11:52:32
|
Jennifer Lai wrote: > Hi Harald, > I could create a single file exeutable with py2exe, but when it=20 > involves twisted framework and tac files, I couldn't find any example o= n=20 > how to produce a standalone executable. Do you know where I can find an= =20 > example or tutorial on this topic? Thanks! I've not seen a tutorial on this in particular, but I assume the problem you're asking about is how to include the .tac files? Py2exe will do dependency analysis and should find Twisted. If it doesn't you can always explicitly include it. When doing a normal distutils distribution you could use the data_files argument to include the .tac files that exist in your Python packages (assuming that's where they live). However, we've run into the problem that py2exe doesn't respect the data_files argument, so we've had to write some path manipulation code so our code can find ZCML files we include. I'm not familiar with .tac at all -- are they imported by Python or specified as data file names? Have you tried writing a simple py2exe script that specifies the packages your app includes? That might be a first step -- see what doesn't work and go from there. Nathan >=20 > Regards, > Jennifer >=20 > Harald Armin Massa wrote: >=20 >> Jennifer, >> >> the best place to look at are within the py2exe directory in site-pack= ages >> >> there is a sample-directory with some setup.py, and there is exactly=20 >> one for "single file" setup. >> >> Best luck, >> >> Harald >> >> >> --=20 >> GHUM Harald Massa >> persuadere et programmare >> Harald Armin Massa >> Reinsburgstra=DFe 202b >> 70197 Stuttgart >> 0173/9409607 >> - >> Let's set so double the killer delete select all.=20 >=20 >=20 >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > 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 Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users |