RE: [Zope3-Users] z3c-form meta.zcml error
Hi all, I'm using setuptools-0.6c7-py2.4.egg on a Mac OS X 10.5.1 and I have the same issue with zope.viewlet 3.4.1. -Tom From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Roger Ineichen [EMAIL PROTECTED] Sent: Thursday, January 24, 2008 10:02 AM To: [EMAIL PROTECTED]; zope3-users@zope.org Cc: 'Philipp von Weitershausen'; 'Martijn Pieters' Subject: AW: [Zope3-Users] z3c-form meta.zcml error Hi all Cc: Philipp von Weitershausen; Martijn Pieters Betreff: Re: [Zope3-Users] z3c-form meta.zcml error [...] Btw, Windows users can generate standard tarballs using the --formats switch: Yep, that worked. Roger forgot those options. I am going to release real tarballs today. No I defently didn't forgot this option. I released 1.7.1 as tar.gz with the option --format=gztar and 1.7.2 as zip because of the report form malthe that the egg misses the zcml file. All the *.zcml files where in every release included. I think that's a setuptools issue, The files do not get extracted, that's it. I have no idea if this only happens because the computer which extracts the eggs does not have the newest setuptools installed. I used the newest version of setuptools whihc is available e.g. version: setuptools-0.6c7-py2.4.egg. If this is a issue on build eggs, then it's defently not fixed. Many thanks Stephan Regards Roger Ineichen Regards, Stephan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c-form meta.zcml error
On Jan 23, 2008 10:12 AM, Peter Koppatz [EMAIL PROTECTED] wrote: What has changed between 1.7.0 and 1.7.2? ls -al | wc -l 1.7.0 -- 76 1.7. 2 -- 47 there are no *-txt , *.zcml anymore! Someone must have built the release tarball from a fresh SVN export; setup.py does not include txt and zcml files and such by default when building a release tarball, while a development egg would include those. In other words, the maintainer of z3c.form (and I mean YOU, Stephan) should add a MANIFEST.in with the lines global-include *.txt and global-include *.zcml in it and re-roll the release. -- Martijn Pieters ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c-form meta.zcml error
On Jan 23, 2008 1:20 PM, Roger Ineichen [EMAIL PROTECTED] wrote: Sorry about that... PhiliKON told me that this is fixed a couple month ago. That was the reason I tried to lay eggs again. But now it seems that we have rumbled eggs again. Seems that setuptools(?) is buggy and still doesn't work on a windows box. Philipp, right? Or do I need a patch? No, I see the exact same thing on Mac and Linux; you need to explicitly include .zcml and .txt files in MANIFEST.in; that file doesn't exist; just create one next to setup.py, and include 2 lines: global-include *.txt global-include *.zcml This'll include *all* text and zcml files recursively found from that directory. -- Martijn Pieters ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c-form meta.zcml error
On Jan 23, 2008 2:04 PM, Roger Ineichen [EMAIL PROTECTED] wrote: No, I see the exact same thing on Mac and Linux; you need to explicitly include .zcml and .txt files in MANIFEST.in; that file doesn't exist; just create one next to setup.py, and include 2 lines: global-include *.txt global-include *.zcml This'll include *all* text and zcml files recursively found from that directory. Are you really sure? that's new to me and that isn't documented here: http://svn.zope.org/*checkout*/Sandbox/philikon/foundation/releasing-softwar e.txt Nope, it's a distutils feature: http://docs.python.org/dist/manifest.html Is this new or just a windows feature? And why does the eggs work on my windows machine without any issue? Did you release the egg from a SVN checkout, or a SVN export? I haven't experimented with this, but that's my current hypothesis, that setuptools behaves differently then; that or a dev egg has been created in a buildout and the .egg-info dir contains more information. Note I just released like we did before, older tags do not contain such a MANIFEST.in file. It's how I solved the same problem recently with the release of collective.captcha; the upload to pypi didn't have anything but the README.txt and the python code; other text files and zcml were missing. Note my output looks like this and contains all *.zcml files etc. Also the zip or if I use --format=tar.gz contain the files. I guess they only get not extracted from the zip or tar.gz file. On my machine everyting is there and the eggs works like expected if the come form pypi ;-) Perhaps there is something different going on then; as I stated, I saw what appears to be the same problem and it was solved by including a MANIFEST.in. -- Martijn Pieters ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c-form meta.zcml error
On 23 Jan 2008, at 14:22 , Martijn Pieters wrote: On Jan 23, 2008 2:04 PM, Roger Ineichen [EMAIL PROTECTED] wrote: No, I see the exact same thing on Mac and Linux; you need to explicitly include .zcml and .txt files in MANIFEST.in; that file doesn't exist; just create one next to setup.py, and include 2 lines: global-include *.txt global-include *.zcml This'll include *all* text and zcml files recursively found from that directory. Are you really sure? that's new to me and that isn't documented here: http://svn.zope.org/*checkout*/Sandbox/philikon/foundation/releasing-softwar e.txt Nope, it's a distutils feature: http://docs.python.org/dist/manifest.html Yes, MANIFEST.in is a distutils feature. It's also described in my book, by the way. However, setuptools makes the usage of MANIFEST.in unnecessary when you're operating within a subversion checkout. In such a case, an egg will contain all files managed by subversion. Therefore, you should always create eggs from svn checkouts, never from svn exports. setuptools is smart enough to ignore '.svn' etc. The releasing- software.txt document outslines the correct procedure here, I think. I distinctly remember there being a Windows-related bug in setuptools, but IIRC, it was about line endings in one of the EGG-INFO files within ZIP files, or something like that. That one was fixed a while ago. Not sure whether it made it to an actual setuptools release, though. Btw, Windows users can generate standard tarballs using the --formats switch: python setup.py sdist --formats=gztar (see python setup.py sdist --help-formats). Since the code was checked on Windows, the source code and text files will have Windows line endings, though... :/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c-form meta.zcml error
On Jan 23, 2008 6:11 PM, Philipp von Weitershausen [EMAIL PROTECTED] wrote: Yes, MANIFEST.in is a distutils feature. It's also described in my book, by the way. However, setuptools makes the usage of MANIFEST.in unnecessary when you're operating within a subversion checkout. In such a case, an egg will contain all files managed by subversion. Therefore, you should always create eggs from svn checkouts, never from svn exports. setuptools is smart enough to ignore '.svn' etc. The releasing- software.txt document outslines the correct procedure here, I think. Right, and I think that's actually a bad feature; it has caused quite some confusion for several developers, including myself. It means that setup.py silently works completely different when within or outside of a subversion working directory. -- Martijn Pieters ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c-form meta.zcml error
On Wednesday 23 January 2008, Philipp von Weitershausen wrote: I distinctly remember there being a Windows-related bug in setuptools, but IIRC, it was about line endings in one of the EGG-INFO files within ZIP files, or something like that. That one was fixed a while ago. Not sure whether it made it to an actual setuptools release, though. Btw, Windows users can generate standard tarballs using the --formats switch: Yep, that worked. Roger forgot those options. I am going to release real tarballs today. As a general observation: Seeing so many people noticing the bad release right away makes me think that people are not using the KGS. I cannot stress enough, how good the KGS treats you, if you use it. ;-) Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. Zope Stephan Richter ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users