Skip to content

make minimal_egg_info string in bootstrap.py unicode#1063

Closed
mattgiles wants to merge 1 commit intopypa:masterfrom
mattgiles:master
Closed

make minimal_egg_info string in bootstrap.py unicode#1063
mattgiles wants to merge 1 commit intopypa:masterfrom
mattgiles:master

Conversation

@mattgiles
Copy link
Copy Markdown

I believe this is likely to be safe in general, but have only tested with 2.7 on OS X.

Without this change, I am seeing error:

$ git clone git@github.com:pypa/setuptools
Cloning into 'setuptools'...
remote: Counting objects: 24321, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 24321 (delta 11), reused 20 (delta 7), pack-reused 24291
Receiving objects: 100% (24321/24321), 28.77 MiB | 7.38 MiB/s, done.
Resolving deltas: 100% (8669/8669), done.
$ cd setuptools
$ git rev-parse HEAD
995d309317c6895a123c03df28bc8f51f6ead5f5
$ python bootstrap.py
adding minimal entry_points
Traceback (most recent call last):
  File "bootstrap.py", line 63, in <module>
    __name__ == '__main__' and main()
  File "bootstrap.py", line 59, in main
    ensure_egg_info()
  File "bootstrap.py", line 37, in ensure_egg_info
    build_egg_info()
  File "bootstrap.py", line 47, in build_egg_info
    ep.write(minimal_egg_info)
TypeError: must be unicode, not str

I believe this is likely to be safe in general, but have only tested with 2.7 on on OS X.

Without this change, I am seeing error:

```
$ git clone git@github.com:pypa/setuptools
Cloning into 'setuptools'...
remote: Counting objects: 24321, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 24321 (delta 11), reused 20 (delta 7), pack-reused 24291
Receiving objects: 100% (24321/24321), 28.77 MiB | 7.38 MiB/s, done.
Resolving deltas: 100% (8669/8669), done.
$ cd setuptools
$ git rev-parse HEAD
995d309
$ python bootstrap.py
adding minimal entry_points
Traceback (most recent call last):
  File "bootstrap.py", line 63, in <module>
    __name__ == '__main__' and main()
  File "bootstrap.py", line 59, in main
    ensure_egg_info()
  File "bootstrap.py", line 37, in ensure_egg_info
    build_egg_info()
  File "bootstrap.py", line 47, in build_egg_info
    ep.write(minimal_egg_info)
TypeError: must be unicode, not str
```
@mattgiles mattgiles changed the title make minimal_egg_info string in bootstrap.py a unicode string make minimal_egg_info string in bootstrap.py unicode Jun 14, 2017
@jaraco
Copy link
Copy Markdown
Member

jaraco commented Jul 13, 2017

Thanks for this, and sorry I left the master in this degraded state. This fix is superseded by dd622e2.

@jaraco jaraco closed this Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants