Re: Bootstrapping ZCA for Python 3.

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20091215132132.GA20758@platonas>
On Tue, Dec 15, 2009 at 10:22:03AM +0100, Lennart Regebro wrote:
> And now it's zc.buildout. It also uses itself, to set up the
> environment so that you can test it. I did try using distribute
> instead, but I get strange inconsistent errors, different ones each
> time I try. :-/
> 
> If someone can set up a way of running the tests for zc.buildout
> without using zc.buildout, I'm sure I can help port it to Python 3,
> but for now I give up. :-)

How about virtualenv?

  svn checkout svn+ssh://svn.zope.org/repos/main/zc.buildout/trunk zc.buildout
  cd zc.buildout
  virtualenv tmp
  tmp/bin/easy_install zope.testing
  tmp/bin/python setup.py develop
  cd zc.recipe.egg_
  ../tmp/bin/python setup.py develop
  cd ...
  tmp/bin/zope-testrunner --test-path=src

When I tried this on Python 2.6 I got some failures, e.g.

  Expected:
    ...
    warning: install_lib: 'build/lib' does not exist -- no Python modules to install
  Got:
    ...
    warning: install_lib: 'build/lib.linux-i686-2.6' does not exist -- no Python modules to install

and

  Expected:
    ...
    UserError: Couldn't install: nonexisting.tgz
  Got:
    ...
      File "/home/mg/src/zc.buildout/src/zc/buildout/easy_install.py", line 360, in _call_easy_install
        if d.project_name != dist.project_name:
    AttributeError: 'str' object has no attribute 'project_name'

and a few more.

If I weren't extremely hungry and starving, I'd run the tests in the official
fashion (bin/buildout && bin/test) and see if I get the same failures.

Cheers!
Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLJ41ckVdEXeem148RAhfMAJ49aSqsgqlgKIbLoSooSrZvd2UBRwCdG0Y4
ZwuXwxFPCVoSVMsU+LwXOgQ=
=Jysw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.