Git Product home page Git Product logo

ez_setup's Introduction

ez_setup

Problem: setup.py of several Python projects blindly import the setuptools bootstrap module ez_setup.py without realizing that it is usually not installed in the user's machine. This causes much trouble.

Workaround: Include ez_setup.py (and distribute_setup.py) as an installable Python package so users can do easy_install ez_setup troublesome_package as a workaround.

Note: The ez_setup.py file being distributed is simply a copy of distribute_setup.py from the Distribute project (a setuptools fork); this is to remain compatible with several Python distributors opting to use Distribute instead of Setuptools -- examples: Debian, ActiveState, and so on.

Credits

ez_setup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ez_setup's Issues

// , Fails with Python 3.7

// , I had to manually edit the call this made to download a module, since PyPI requires HTTPS.

Line 149 of ez_setup.py should have https.

Ultimately, this setup tool failed, and I had to use a different method.

DEFAULT_VERSION = "0.6.14"
DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
SETUPTOOLS_FAKED_VERSION = "0.6c11"

SETUPTOOLS_PKG_INFO = """\
Metadata-Version: 1.0
Name: setuptools

Here's the error:

  File "/Users/v6/Envs/tipple/lib/python3.7/site-packages/ez_setup.py", line 124, in _do_download
    to_dir, download_delay)
  File "/Users/v6/Envs/tipple/lib/python3.7/site-packages/ez_setup.py", line 193, in download_setuptools
    src = urlopen(url)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: SSL is required

Update bootstrap scripts

A lot has changed in python packaging since 3 years ago!

This is the top result searching for 'ez_setup' on DuckDuckGo.

distribute is now no longer the new hotness, setuptools is! (because distribute got merged back into it)

So the recommendation has pretty much reversed, which is unfortunately really bad for old advice.

The newest setuptools can be found at https://bitbucket.org/pypa/setuptools

and bootstrap script at https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py

newest distribute is 0.7.3 https://pypi.python.org/pypi/distribute/0.7.3 but it is now recommended to install setuptools instead.

Maybe you could consider updating your files / advice in this repo to update to the newest situation.

If you'd like an informative video about how things have changed, there is one here https://www.youtube.com/watch?v=8Xrdt3-YVz4

cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.