Skip to content

Evil hack in setup script #3

@jaraco

Description

@jaraco

Original report by Éric Araujo (Bitbucket: Merwok, GitHub: Merwok).


This is downright evil :)

reload(sys)
sys.setdefaultencoding('utf8')

If I need to support an old Python version that does not support Unicode in setup.py, I just use raw UTF-8 bytes for the name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmajor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions