Comment 2 for bug 611362

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [Bug 611362] [NEW] "setup.py install" skips zope/interface/common/

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jean-Paul Calderone wrote:
> Public bug reported:
>
> After installing the 3.6.1 release from PyPI, the zope.interface.common
> package is not available:
>
>
> exarkun@boson:~/Downloads$ tar xzf zope.interface-3.6.1.tar.gz
> exarkun@boson:~/Downloads$ cd zope.interface-3.6.1/
> exarkun@boson:~/Downloads/zope.interface-3.6.1$ python setup.py install --quiet --prefix /tmp/ZOPE-TEST
> /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite'
> ....
> exarkun@boson:~/Downloads/zope.interface-3.6.1$ PYTHONPATH=/tmp/ZOPE-TEST/ python -c 'from zope.interface import common'
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: cannot import name common
> exarkun@boson:~/Downloads/zope.interface-3.6.1$
>
> ** Affects: zope.interface
> Importance: Undecided
> Status: New

 status incomplete

Hmm, this seems to be true only when installing without setuptools:

 $ /opt/Python-2.6.5/bin/virtualenv --no-site-packages /tmp/lp_611362
 New python executable in /tmp/lp_611362/bin/python
 Installing setuptools............done.
 [/home/tseaver]
 $ /tmp/lp_611362/bin/easy_install zope.interface
 Searching for zope.interface
 Reading http://pypi.python.org/simple/zope.interface/
 Best match: zope.interface 3.6.1
 Downloading
http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.6.1.tar.gz#md5=7a895181b8d10be4a7e9a3afa13cd3be
 Processing zope.interface-3.6.1.tar.gz
 Running zope.interface-3.6.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-5jIMKN/zope.interface-3.6.1/egg-dist-tmp-0LR2wv
 Adding zope.interface 3.6.1 to easy-install.pth file

 Installed
/tmp/lp_611362/lib/python2.6/site-packages/zope.interface-3.6.1-py2.6-linux-i686.egg
 Processing dependencies for zope.interface
 Finished processing dependencies for zope.interface
 [/home/tseaver]
 $ /tmp/lp_611362/bin/python
 Python 2.6.5 (r265:79063, Apr 6 2010, 14:45:18)
 [GCC 4.3.3] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import zope.interface
 >>> import zope.interface.common
 >>> zope.interface.__file__
 '/tmp/lp_611362/lib/python2.6/site-packages/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/__init__.pyc'
 >>> zope.interface.common.__file__
 '/tmp/lp_611362/lib/python2.6/site-packages/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/common/__init__.pyc'

- --
===================================================================
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkxRwh0ACgkQ+gerLs4ltQ7PXACbBF+9OYH0zLULrO4mUouXk7sj
37wAni0PxrOqvCAeZvmaTJALfrK7Ydrz
=ldyh
-----END PGP SIGNATURE-----