Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect explicit encoding declarations in setup.py files. #816

Closed
wants to merge 1 commit into from

Commits on Dec 1, 2013

  1. Respect explicit encoding declarations in setup.py files.

    In Python 2, the exec statement handles encoding for us, but in
    Python 3 the encoding must be specified when opening the file
    (if it's not specified it uses the system locale encoding, so
    previously this would work only if your locale environment variables
    specified the same encoding as the setup.py file).
    
    On Python 3.2+ the tokenize.open function is available to interpret
    the encoding declaration; fixing this for python 3.0 and 3.1 is more
    difficult.
    bdarnell committed Dec 1, 2013
    Configuration menu
    Copy the full SHA
    8c21e1c View commit details
    Browse the repository at this point in the history