[PEAK] [setuptools] use_setuptools() doesn't use setuptools

P.J. Eby pje at telecommunity.com
Sat May 8 21:32:39 EDT 2010


At 08:40 PM 5/8/2010 -0400, Nikolaus Rath wrote:
>Hello,
>
>Why isn't this working? It seems that the script is not actually using
>the downloaded setuptools version:

Does it work when you run it a second time?


>$ cat setup_bla.py
>#!/usr/bin/env python
>from __future__ import division, print_function
>
># Import setuptools
>import ez_setup
>ez_setup.use_setuptools(download_delay=5)
>import setuptools
>
>setuptools.setup(
>           name='s3ql',
>           zip_safe=True,
>          )
>
>$ ./setup_bla.py test
>
>---------------------------------------------------------------------------
>This script requires setuptools version 0.6c11 to run (even to display
>help).  I will attempt to download it for you (from
>http://pypi.python.org/packages/2.6/s/setuptools/), but
>you may need to enable firewall access for this script first.
>I will start the download in 5 seconds.
>
>(Note: if this machine does not have network access, please obtain the file
>
> 
>http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
>
>and place it in this directory before rerunning this script.)
>---------------------------------------------------------------------------
>Downloading 
>http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
>/usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown 
>distribution option: 'zip_safe'
>   warnings.warn(msg)
>usage: setup_bla.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>    or: setup_bla.py --help [cmd1 cmd2 ...]
>    or: setup_bla.py --help-commands
>    or: setup_bla.py cmd --help
>
>error: invalid command 'test'
>
>
>
>Best,
>
>    -Nikolaus
>
>--
>  »Time flies like an arrow, fruit flies like a Banana.«
>
>   PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
>
>_______________________________________________
>PEAK mailing list
>PEAK at eby-sarna.com
>http://www.eby-sarna.com/mailman/listinfo/peak



More information about the PEAK mailing list