to prevent any confusion, there's 2 different issues in this thread 1) what Jason just mentioned, the "use_setuptools" issue. https://bitbucket.org/pypa/setuptools/issue/18/packages-that-use_setuptools-from-older 2) using pip to upgrade to the new setuptools: https://github.com/pypa/pip/issues/986
Marcus On Thu, Jun 13, 2013 at 7:57 AM, Jason R. Coombs <[email protected]> wrote: > Hi everyone.**** > > ** ** > > I’ve filed Setuptools #18 ( > https://bitbucket.org/pypa/setuptools/issue/18/packages-that-use_setuptools-from-older) > to track this issue.**** > > ** ** > > I’ve had some time to think about it this week, and I think I have a > workaround that I’ll post on the tracker.**** > > ** ** > > Thanks for the reports.**** > > ** ** > > ** ** > > *From:* Julian Berman [mailto:[email protected]] > *Sent:* Sunday, 09 June, 2013 14:46 > *To:* Jason R. Coombs > *Cc:* [email protected] > > *Subject:* Re: [Distutils] Setuptools/Distribute error with 0.7.2**** > > ** ** > > Hey Jason.**** > > ** ** > > I was getting it before you removed it I think (and yeah, still get it now > if I `pip install > https://bitbucket.org/pypa/setuptools/downloads/distribute-0.7.zip`).**** > > ** ** > > An example of such a package is pudb, if you'd like to try and reproduce > (or I can open an issue on the tracker, just wasn't sure I wasn't missing > something), but even if I install with easy_install I still seem to get the > same output:**** > > ** ** > > ⊙ easy_install pudb > > Julian@air**** > > Searching for pudb**** > > Reading https://pypi.python.org/simple/pudb/**** > > Best match: pudb 2013.2**** > > Downloading > https://pypi.python.org/packages/source/p/pudb/pudb-2013.2.tar.gz#md5=16411aaffc6f7ae63aba3830ba4ebee5 > **** > > Processing pudb-2013.2.tar.gz**** > > Writing > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/setup.cfg > **** > > Running pudb-2013.2/setup.py -q bdist_egg --dist-dir > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/egg-dist-tmp-6RBU6H > **** > > Downloading > http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz > **** > > Extracting in > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl > **** > > Now working in > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35 > **** > > Building a Distribute egg in > /private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2 > **** > > Traceback (most recent call last):**** > > File "setup.py", line 45, in <module>**** > > exec(init_file.read(), d)**** > > File "<string>", line 8, in <module>**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/__init__.py", > line 2, in <module>**** > > from setuptools.extension import Extension, Library**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/extension.py", > line 5, in <module>**** > > from setuptools.dist import _get_unpatched**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/dist.py", > line 6, in <module>**** > > from setuptools.command.install import install**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/command/__init__.py", > line 8, in <module>**** > > from setuptools.command import install_scripts**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/setuptools/command/install_scripts.py", > line 3, in <module>**** > > from pkg_resources import Distribution, PathMetadata, ensure_directory > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py", > line 2825, in <module>**** > > add_activation_listener(lambda dist: dist.activate())**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py", > line 710, in subscribe**** > > callback(dist)**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py", > line 2825, in <lambda>**** > > add_activation_listener(lambda dist: dist.activate())**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py", > line 2257, in activate**** > > self.insert_on(path)**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/temp/tmpBW8hGl/distribute-0.6.35/pkg_resources.py", > line 2358, in insert_on**** > > "with distribute. Found one at %s" % str(self.location))**** > > ValueError: A 0.7-series setuptools cannot be installed with distribute. > Found one at > /usr/local/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg**** > > > /private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/easy_install-URSqF1/pudb-2013.2/distribute-0.6.35-py2.7.egg > **** > > error: None**** > > ** ** > > ~**** > > ⊙ pip freeze | grep distribute > > Julian@air**** > > distribute==0.7**** > > ** ** > > On Sun, Jun 9, 2013 at 2:29 PM, Jason R. Coombs <[email protected]> wrote: > **** > > Hi Julian,**** > > I believe for those packages that call `use_setuptools()` > from `distribute_setup.py`, the only option to support them is to install > Distribute 0.7 (the stub package), which I believe will satisfy the > use_setuptools() call so it doesn’t attempt to install Distribute 0.6.**** > > **** > > As mentioned in another post, I’ve temporarily pulled > Distribute 0.7 from PyPI until we can determine a way to avoid the pip > upgrade issue. In the meantime, if you install Distribute 0.7 from > https://bitbucket.org/pypa/setuptools/downloads, does that solve your > issue?**** > > **** > > Regards,**** > > Jason**** > > **** > > *From:* Distutils-SIG [mailto:distutils-sig-bounces+jaraco= > [email protected]] *On Behalf Of *Julian Berman > *Sent:* Sunday, 09 June, 2013 14:21 > *To:* [email protected] > *Subject:* Re: [Distutils] Setuptools/Distribute error with 0.7.2**** > > **** > > (I was also getting this until I used easy_install to upgrade)**** > > **** > > What is supposed to happen with stuff that used to do `use_setuptools()` > in their setup.py now?**** > > **** > > I upgraded to setuptools 0.7.2, but now if I try to install a thing that > has that in the setup.py, it seems to want to try and install distribute, > and I get:**** > > **** > > Downloading/unpacking pudb (from -r > /Users/Julian/.local/share/virtualenvs/requirements-every-virtualenv.txt > (line 2))**** > > Using download cache from /Users/Julian/Library/Caches/pip/https%3A%2F% > 2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpudb%2Fpudb-2013.2.tar.gz**** > > Running setup.py egg_info for package pudb**** > > Downloading > http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz > **** > > Extracting in > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3**** > > Now working in > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35 > **** > > Building a Distribute egg in > /Users/Julian/.local/share/virtualenvs/great/build/pudb**** > > Traceback (most recent call last):**** > > File "setup.py", line 45, in <module>**** > > exec(init_file.read(), d)**** > > File "<string>", line 8, in <module>**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/__init__.py", > line 2, in <module>**** > > from setuptools.extension import Extension, Library**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/extension.py", > line 5, in <module>**** > > from setuptools.dist import _get_unpatched**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/dist.py", > line 6, in <module>**** > > from setuptools.command.install import install**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/__init__.py", > line 8, in <module>**** > > from setuptools.command import install_scripts**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/install_scripts.py", > line 3, in <module>**** > > from pkg_resources import Distribution, PathMetadata, > ensure_directory**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2825, in <module>**** > > add_activation_listener(lambda dist: dist.activate())**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 710, in subscribe**** > > callback(dist)**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2825, in <lambda>**** > > add_activation_listener(lambda dist: dist.activate())**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2257, in activate**** > > self.insert_on(path)**** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2358, in insert_on**** > > "with distribute. Found one at %s" % str(self.location))**** > > ValueError: A 0.7-series setuptools cannot be installed with > distribute. Found one at > /Users/Julian/.local/share/virtualenvs/great/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg > **** > > > /Users/Julian/.local/share/virtualenvs/great/build/pudb/distribute-0.6.35-py2.7.egg > **** > > Traceback (most recent call last):**** > > File "<string>", line 16, in <module>**** > > File > "/Users/Julian/.local/share/virtualenvs/great/build/pudb/setup.py", line 5, > in <module>**** > > use_setuptools()**** > > File "distribute_setup.py", line 152, in use_setuptools**** > > return _do_download(version, download_base, to_dir, download_delay) > **** > > File "distribute_setup.py", line 132, in _do_download**** > > _build_egg(egg, tarball, to_dir)**** > > File "distribute_setup.py", line 123, in _build_egg**** > > raise IOError('Could not build the egg.')**** > > IOError: Could not build the egg.**** > > Complete output from command python setup.py egg_info:**** > > Downloading > http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz > **** > > **** > > Extracting in /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3** > ** > > **** > > Now working in > /var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35 > **** > > **** > > Building a Distribute egg in > /Users/Julian/.local/share/virtualenvs/great/build/pudb**** > > **** > > Traceback (most recent call last):**** > > **** > > File "setup.py", line 45, in <module>**** > > **** > > exec(init_file.read(), d)**** > > **** > > File "<string>", line 8, in <module>**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/__init__.py", > line 2, in <module>**** > > **** > > from setuptools.extension import Extension, Library**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/extension.py", > line 5, in <module>**** > > **** > > from setuptools.dist import _get_unpatched**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/dist.py", > line 6, in <module>**** > > **** > > from setuptools.command.install import install**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/__init__.py", > line 8, in <module>**** > > **** > > from setuptools.command import install_scripts**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/setuptools/command/install_scripts.py", > line 3, in <module>**** > > **** > > from pkg_resources import Distribution, PathMetadata, ensure_directory > **** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2825, in <module>**** > > **** > > add_activation_listener(lambda dist: dist.activate())**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 710, in subscribe**** > > **** > > callback(dist)**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2825, in <lambda>**** > > **** > > add_activation_listener(lambda dist: dist.activate())**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2257, in activate**** > > **** > > self.insert_on(path)**** > > **** > > File > "/private/var/folders/zc/bzrwlgxd51594q6lt1yrx5v00000gn/T/tmp8NepZ3/distribute-0.6.35/pkg_resources.py", > line 2358, in insert_on**** > > **** > > "with distribute. Found one at %s" % str(self.location))**** > > **** > > ValueError: A 0.7-series setuptools cannot be installed with distribute. > Found one at > /Users/Julian/.local/share/virtualenvs/great/lib/python2.7/site-packages/setuptools-0.7.2-py2.7.egg > **** > > **** > > > /Users/Julian/.local/share/virtualenvs/great/build/pudb/distribute-0.6.35-py2.7.egg > **** > > **** > > Traceback (most recent call last):**** > > **** > > File "<string>", line 16, in <module>**** > > **** > > File "/Users/Julian/.local/share/virtualenvs/great/build/pudb/setup.py", > line 5, in <module>**** > > **** > > use_setuptools()**** > > **** > > File "distribute_setup.py", line 152, in use_setuptools**** > > **** > > return _do_download(version, download_base, to_dir, download_delay)*** > * > > **** > > File "distribute_setup.py", line 132, in _do_download**** > > **** > > _build_egg(egg, tarball, to_dir)**** > > **** > > File "distribute_setup.py", line 123, in _build_egg**** > > **** > > raise IOError('Could not build the egg.')**** > > **** > > IOError: Could not build the egg.**** > > **** > > ----------------------------------------**** > > Command python setup.py egg_info failed with error code 1 in > /Users/Julian/.local/share/virtualenvs/great/build/pudb**** > > S**** > > **** > > ** ** > > _______________________________________________ > Distutils-SIG maillist - [email protected] > http://mail.python.org/mailman/listinfo/distutils-sig > >
_______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
