The new namespace_packages option seems to work for the zope packages
in my project, but is having trouble with repoze.lru for some reason.
My setup.py looks like this:
from cx_Freeze import setup, Executable
version = '1.0'
includes=['lxml', 'lxml._elementpath', 'lxml.etree', 'gzip',
'gfmodel', 'gfserver', 'chameleon', 'paste', 'webob', 'paste']
namespaces = ['zope.interface', 'zope.component', 'repoze.bfg']
setup(name='gearfacts',
version=version,
options = {
"build_exe" : {
"namespace_packages": namespaces,
"includes": includes,
},
},
executables=[Executable('run.py')],
)
The link for the repoze package that is giving trouble is
repoze.lru-0.3.tar.gz. The other repoze package that I use is
repoze.bfg, and it is correctly imported into the build. If you do:
easy_install -i http://dist.repoze.org/bfg/1.1/simple repoze.bfg
You will get all of the zope and repoze dependencies for a repoze.bfg
web app. You may want to do this in a virtualenv, as it gives you a
lot of stuff.
Craig
On Feb 24, 2010, at 8:33 AM, Anthony Tuininga wrote:
On Tue, Feb 23, 2010 at 2:49 PM, Craig Swank <[email protected]>
wrote:
That is great work so far! I think we are getting somewhere. When
you say
If there are a lot of them I could also add a
new option "namespace_packages" which essentially calls
pkgutil.extend_path for those packages. Let me know what you think.
Do you mean that namespace_packages would handle anything that is a
namespace package? If so, I think that is the only way to go. As I
said, repoze is a set of namepace packages, and I think there are
other ones that cx_freeze has trouble with. For instance,
PasteDeploy
and PasteScript appear to be namespace packages, but they are not
named with a '.' in the package name (I'll paste the tree output for
each below). Also, for my application, there are two repoze
packages
(repoze.bfg and repoze.lru). I think it would be very difficult if
you had to add a new hook for each new namespace that comes along.
Agreed.
So I have now checked in code that adds support for namespace packages
and modifies the hook for zope to use the new interface. You can put
in your own namespace packages (and any others you discover) in to the
new "namespace_packages" list -- a new build option. Grab the code
from Subversion and dump the modified files in place in your existing
installation. The base executables do not need to be rebuilt. I'd
appreciate your feedback. If you're satisfied I'll likely make a new
release with this and the few other things I've added over the last
couple of weeks.
Anthony
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users