pypa / get-pip

Helper scripts to install pip, in a Python installation that doesn't have it.
https://bootstrap.pypa.io/pip/
MIT License
755 stars 297 forks source link

Fix script generation on Windows #121

Closed uranusjr closed 3 years ago

uranusjr commented 3 years ago
  1. The log line is purely cosmetic so there's no need to use PosixPath specifically (which crashes on Windows).
  2. Use open-write instead of Path.write_text() so we can pass the newline argument explicitly to avoid newline differences on Windows.
uranusjr commented 3 years ago

See #123