spack / spack-bootstrap-installer

Code to generate installers for Spack and any required dependencies (ie python)
Apache License 2.0
1 stars 0 forks source link

Use urllib downloads instead of curl #7

Open BetsyMcPhail opened 3 years ago

loulawrence commented 3 years ago

urllib must manually decode responses to utf-8, which may cause errors on special characters, e.g. ñ, ö, ß . Can be ignored to pass tests, but may have unforeseen consequences.

BetsyMcPhail commented 3 years ago

Resolved by https://github.com/spack/spack/pull/21398

BetsyMcPhail commented 3 years ago

I have a WIP branch where all 'url_fetch' tests are passing on Windows --> https://github.com/BetsyMcPhail/spack/tree/urllib-windows

A few notes:

Command to run tests: spack unit-test lib/spack/spack/test/url_fetch.py

FYI @loulawrence if you want to give the branch a try on your system

BetsyMcPhail commented 3 years ago

Thanks for testing @loulawrence, hopefully all of the tests should be passing on Windows now!

BetsyMcPhail commented 3 years ago

PR #21594 has the changes necessary for url_fetch test to pass on Windows.

To test, the Windows system must have 1. curl available and 2. #20412

Command to run tests: spack unit-test lib/spack/spack/test/url_fetch.py