[Distutils] ez_setup.py can not get setuptools

tritium-list at sdamon.com tritium-list at sdamon.com
Fri May 6 12:31:19 EDT 2016


If you are using ez_setup in your setup.py, presumably you have guarded against the presence of setuptools in the target environment.  If you don’t have setuptools, you don’t have pip.

 

From: Distutils-SIG [mailto:distutils-sig-bounces+tritium-list=sdamon.com at python.org] On Behalf Of Chris Barker
Sent: Friday, May 6, 2016 12:17 PM
To: Benedek Zoltan <benzolius at yahoo.com>
Cc: distutils-sig at python.org
Subject: Re: [Distutils] ez_setup.py can not get setuptools

 

ez_setup.py is pretty darn old.

 

Any reason you can't:

 

python -m pip install setuptools

 

?

 

-CHB

 

 

On Fri, May 6, 2016 at 12:11 AM, Benedek Zoltan via Distutils-SIG <distutils-sig at python.org <mailto:distutils-sig at python.org> > wrote:

Hi,

 

I don't know what happened recently. Usually I install setuptools by a script using the ez_setup.py script.

 

Recently I get an error:

 

Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-21.0.0.zip

Traceback (most recent call last):

  File "downloads/ez_setup.py", line 415, in <module>

    sys.exit(main())

  File "downloads/ez_setup.py", line 411, in main

    archive = download_setuptools(**_download_args(options))

  File "downloads/ez_setup.py", line 336, in download_setuptools

    downloader(url, saveto)

  File "downloads/ez_setup.py", line 287, in download_file_insecure

    src = urlopen(url)

  File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python3.4/urllib/request.py", line 469, in open

    response = meth(req, response)

  File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response

    'http', request, response, code, msg, hdrs)

  File "/usr/lib/python3.4/urllib/request.py", line 507, in error

    return self._call_chain(*args)

  File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain

    result = func(*args)

  File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default

    raise HTTPError(req.full_url, code, msg, hdrs, fp)

urllib.error.HTTPError: HTTP Error 404: Not Found

 

For now I can copy the package from an old virtualenv, but I'd appreciate a better solution/advise.

 

Thanks

Zoltan


_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG at python.org <mailto:Distutils-SIG at python.org> 
https://mail.python.org/mailman/listinfo/distutils-sig





 

-- 


Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov <mailto:Chris.Barker at noaa.gov> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160506/1b06f2cc/attachment-0001.html>


More information about the Distutils-SIG mailing list