-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
NEW: Prototype Docker image for Windows #209
base: main
Are you sure you want to change the base?
Conversation
I tried building the h5py-feedstock in this container, but at the very end of the build after overlink checking I get the following error:
so the good news is that I seem to have the correct compiler tooling installed, but something isn't as expected for packaging. |
cc @xhochy (in case this is of interest 🙂) |
Two more things that need to be addressed:
I believe that the general license for the Visual Studio build tools does not allow public redistribution.
However, it does allow installing onto a container for internal/private use. So we could make this container then only distribute it to conda-forge members via private github/azure docker container registry. That's probably not what we want though, so special license from Microsoft is probably wanted.
|
The cleanup error seems to come from |
OK. With |
Maybe nanoserver is an option again because Anaconda has dropped support for win32? |
Having a Docker image for the Windows build environment is a first step toward reproducible builds offline using the
build-locally.py
script.This PR adds a windows docker image based on the one first posted by @xhochy.
The image starts with the Windows Server Core LTS 2019 image (which is cached on azure-pipelines) then adds conda and some Visual Studio build tools.
The base image is approx 5.7 GB, the conda install is 1.1 GB, and Visual Studio is 4 GB (with components below).
One nice things about the VS installer used in this image is that it is configured using a file that lists exactly which components are included. I think this is key to easily reducing the VS components to the bare minimum for conda-forge. Unfortunately, I am not familiar enough with the conda compiler toolchain to know which components are already available as conda-packages and which must be included in the image.
Related
conda-forge/conda-forge.github.io#928
https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering
Support/Lifecycle dates for visual studio releases
https://docs.microsoft.com/en-us/lifecycle/products/visual-studio-2019
https://docs.microsoft.com/en-us/lifecycle/products/visual-studio-2017
Download links for archived versions of visual studio installer
You can switch between visual studio years by clicking on the version dropdown in the upper left menu.
https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022
https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017
Description of workloads and components
These components workloads change from year release to year release and are not available before the 2017 installer. This docker image tries to install the minimum required for the C++ workload. Switch between year releases in the upper left menu.
https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=vs-2017