This repository was archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[WIP] Windows dev environment configuration, update install instructions from source in the docs. #17206
Closed
Closed
[WIP] Windows dev environment configuration, update install instructions from source in the docs. #17206
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e4dff32
Update documentation with automated windows environment scripts
larroy 08787d6
Add scripts
larroy 5ee2ab1
Fix import
larroy bdda75c
Remove all the useless garbage for the manual windows setup
larroy 4e03824
Fix bugs, turn off gpu autodetect
larroy 04cf744
vs update changes and cmake
larroy 4633bae
Use vs2017, change opencv path
larroy 44a2dd7
Revert to VS 2015, VS 2017 fails with out of heap VS 2019 fails with …
larroy 6f043d1
build with ninja
larroy fef129e
Switch to ninja, remove uneccesary OpenCV_DIR var
larroy f43a504
Update opencv and cmake
larroy ad12100
update setup.ps1
larroy 654f54c
EC2 gpu autodetection
larroy 0b5ae1b
Fix opencv path
larroy 6511e73
Update to VS 2017 and to 64 bit host.
larroy 67f131b
Add warning on GPU detect
larroy 83a9576
remove unnecessary vars
larroy d01b0cf
Update docs/static_site/src/pages/get_started/windows_setup.md
larroy e124156
Fix broken VS path
larroy f32a43a
doc fixes
larroy bee3d85
CR comment
larroy d7a4d26
remove gpu flag
larroy 08c3a55
update dep scripts
larroy 78ef0ef
opencv and vs15 fixes, depending on the environment the compiler is n…
larroy 12f3c9e
Increase docker timeouts
larroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| psutil | ||
| boto3 | ||
| python-jenkins | ||
| progressbar2 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
|
|
||
| $ErrorActionPreference = "Stop" | ||
| Set-StrictMode -Version Latest | ||
| function Check-Call { | ||
| param ( | ||
| [scriptblock]$ScriptBlock | ||
| ) | ||
| Write-Host "Executing $ScriptBlock" | ||
| & @ScriptBlock | ||
| if (($lastexitcode -ne 0)) { | ||
| Write-Error "Execution failed with $lastexitcode" | ||
| exit $lastexitcode | ||
| } | ||
| } | ||
| Check-Call { setx PATH "$($env:path);c:\Program Files\CMake\bin;" /m } | ||
| Set-ExecutionPolicy Bypass -Scope Process -Force | ||
| Invoke-WebRequest -Uri https://chocolatey.org/install.ps1 -OutFile install.ps1 | ||
| ./install.ps1 | ||
| #Check-Call { C:\ProgramData\chocolatey\choco install python2 -y --no-progress } | ||
| Check-Call { C:\ProgramData\chocolatey\choco install python --version=3.7.0 --force -y --no-progress -r} | ||
| Check-Call { C:\Python37\python -m pip install --upgrade pip } | ||
| Check-Call { C:\Python37\python -m pip install -r requirements.txt } | ||
| #Check-Call { C:\Python27\python -m pip install --upgrade pip } | ||
| #Check-Call { C:\Python27\python -m pip install -r requirements.txt } | ||
|
|
||
| Check-Call { C:\ProgramData\chocolatey\choco install git -y -r --no-progress } | ||
| Check-Call { C:\ProgramData\chocolatey\choco install 7zip -y -r --no-progress } | ||
| Check-Call { C:\ProgramData\chocolatey\choco install cmake -y -r --no-progress } | ||
| Check-Call { C:\ProgramData\chocolatey\choco install ninja -y -r --no-progress } | ||
|
|
||
| # Deps | ||
| Check-Call { C:\Python37\python windows_deps_headless_installer.py } | ||
|
|
||
| # Other software | ||
| #Check-Call { C:\ProgramData\chocolatey\choco install jom -y } | ||
|
larroy marked this conversation as resolved.
|
||
| #Check-Call { C:\ProgramData\chocolatey\choco install mingw -y -r --no-progress } | ||
| Check-Call { C:\ProgramData\chocolatey\choco install javaruntime -y -r --no-progress } | ||
|
|
||
| # update path after all software is installed | ||
| refreshenv | ||
|
|
||
| Write-Output "End" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you added it, is it in the slave scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well yeah it's used as part of the Autoconnect script. But since you are recommending this for users to install, it seems a bit out of place. We should handle infrastructure and MXNet related things separately if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove it in the future, it doesn't hurt there now, and I don't want additional scripts as of now. I don't think this is a big concern, even though you are right.