"setup.py install" skips zope/interface/common/

Bug #611362 reported by Jean-Paul Calderone
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zope.interface
Won't Fix
Undecided
Unassigned

Bug Description

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$

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :
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-----

Changed in zope.interface:
status: New → Incomplete
Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

Okay. Why is this marked as Incomplete?

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

I just heard about a case of this happening on Ubuntu 12.10. I suspect it's a bug in setuptools or distutils or ubuntu's patching of same, not zope.interface; can someone comment on what mechanism ZI uses to include the 'common' package? I don't see it in setup.cfg, or a manifest file... I am guessing there's some setuptools magic which is supposed to make it get included.

Changed in zope.interface:
status: Incomplete → Confirmed
Revision history for this message
Glyph Lefkowitz (glyph) wrote :

Also of note; setuptools *was* installed on the system where this happened. It was zope.interface 4.0.3 in this case.

Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in zope.interface:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.