Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build script trusts Python.org binaries and non-freedom Visual Studio (msvc, mingw, exe, crt, msvcrt, microsoft, gcc) #6565

Open
JeremyRand opened this issue Sep 9, 2020 · 2 comments
Labels

Comments

@JeremyRand
Copy link
Contributor

The Windows build scripts include this:

download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi" "https://www.python.org/ftp/python/$PYTHON_VERSION/win32/${msifile}.msi"
download_if_not_exist "$PYTHON_DOWNLOADS/${msifile}.msi.asc" "https://www.python.org/ftp/python/$PYTHON_VERSION/win32/${msifile}.msi.asc"

This is downloading Python binaries from Python.org. Those binaries are probably not reproducible, and they are built with a non-freedom compiler (Visual Studio 2017 AFAIK). It would be better to use Python binaries for Windows that are reproducibly cross-compiled from GNU/Linux.

Would a PR be accepted that does this?

@SomberNight
Copy link
Member

Yes, of course.

@SomberNight SomberNight changed the title Windows build script trusts Python.org binaries and non-freedom Visual Studio Windows build script trusts Python.org binaries and non-freedom Visual Studio (msvc, mingw, exe, crt, msvcrt, microsoft, gcc) Nov 15, 2020
@SomberNight
Copy link
Member

some related links:
https://matthew-brett.github.io/pydagogue/mingw_python.html
https://bugs.python.org/issue4709
https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-python (snapshot)

Note that if we built python using mingw, the prebuilt windows wheels provided on PyPI for some of our dependencies might not work with that anymore - in which case we would have to rebuild those using mingw too.

In any case, if we could avoid using pre-built wheels and build our dependencies from source instead, that would be a huge win. To me personally, that looks even more important than building python ourselves -- I am inclined to trust CPython builds from python.org more than binary wheels from PyPI for our python dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants