• 
      

    Fix packaging extensions on Python 3.

    Review Request #11486 — Created Feb. 25, 2021 and submitted

    Information

    Djblets
    release-2.x

    Reviewers

    We had a couple of hard-coded byte strings for setup.py command
    options, which broke on Python 3. We wanted to use native strings to
    ensure Unicode on Python 3 and bytes on Python 2.

    This change simply wraps each in a str() to ensure native string
    types.

    Ran ./setup.py bdist_wheel on an extension and saw it work without
    crashes. Previously, it complained about the byte string.

    Summary ID
    Fix packaging extensions on Python 3.
    We had a couple of hard-coded byte strings for `setup.py` command options, which broke on Python 3. We wanted to use native strings to ensure Unicode on Python 3 and bytes on Python 2. This change simply wraps each in a `str()` to ensure native string types.
    e2b63da307f7f2d612b3e41193b5a823c8e91479
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.x (a75a73b)