Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCreate `mach bootstrap` based on Mozilla's mozboot bootstrapper #12916
Conversation
highfive
commented
Aug 17, 2016
|
Heads up! This PR modifies the following files:
|
|
Can the command window be kept when error occurred? Users won't see the error messages unless they manually run |
|
@saschanaz I don't understand, can you please show which part of code did you mean? |
|
@UK992 I was talking about mach.bat ECHO lines but never mind, the error message was thrown from mach rather than mach.bat. Is there a way to keep cmd window when mach throws any error? (The error message was about the nonexistence of python virtualenv) |
ba60869
to
0551280
|
|
| # Don't download CMake if already exists in PATH | ||
| if dep_name == "cmake": | ||
| if spawn.find_executable(dep_name): | ||
| continue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
UK992
Sep 1, 2016
Author
Contributor
Hardly, considering that it compares with the names in the list.
|
In last commit i moved to |
bbbbbe9
to
0bcb7ac
| % __name__) | ||
|
|
||
| def which(self, name): | ||
| """Python implementation of which. |
This comment has been minimized.
This comment has been minimized.
wafflespeanut
Sep 2, 2016
Member
Can't we just use distutils.spawn.find_executable? (like we do in mach_bootstrap.py)
This comment has been minimized.
This comment has been minimized.
|
I don't have much ideas/suggestions regarding MSVC bootstrapping (apart from python'ish style nits, which I'll address in the end). Pinging @larsbergstrom @vvuk and @metajack to look into this sometime... |
| $env:FFMPEG_LIBS="avformat:avcodec:avutil" ; | ||
| }' | ||
| - if %BUILD_ENV%==msvc call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" | ||
| # - ps: 'if ($env:BUILD_ENV -eq "msvc") { |
This comment has been minimized.
This comment has been minimized.
larsbergstrom
Sep 2, 2016
Contributor
Can you change this to instead do ./mach bootstrap-msvc and see if that works on AppVeyor?
This comment has been minimized.
This comment has been minimized.
UK992
Sep 2, 2016
•
Author
Contributor
bootstrap-msvc is replaced by bootstrap in newer commit, which also support gnu builds, but for msvc build, command is being run in ensure_bootstrapped. But i did that for gnu builds.
EDIT: doesn't work for gnu
| return print("Unsupported platform.") | ||
|
|
||
| msvc_deps_dir = path.join(self.context.sharedir, "msvc-dependencies") | ||
| msvc_deps_url = "https://dl.dropboxusercontent.com/u/25971865/msvc-deps/" |
This comment has been minimized.
This comment has been minimized.
larsbergstrom
Sep 2, 2016
Contributor
We will definitely want to move these to one of the Servo S3 buckets. I like that you've versioned the files, which is something we've definitely found a need for in the past.
90dac0b
to
ecaa97c
|
|
|
@larsbergstrom done! |
|
I've made some renamings: |
|
I just had a brief overview on this, and I'm cool with most of the stuff. Let's land this thing happily and if there's something dirty, we'll cleanup later |
|
@bors-servo r=larsbergstrom,wafflespeanut |
|
|
…espeanut Create `mach bootstrap` based on Mozilla's mozboot bootstrapper Fixes #12914 I've made this few weeks ago, its an example how could everything looks like. It downloads and setup all needed dependencies for MSVC. It's has version in case if some dependencies need to be updated. Zip files and folder in zip need to be named ``<dep>-<version>``. Also if cmake already exist in PATH, it won't download it again. I want opinion on that, if this is right approaches and how to improve it. cc @vvuk <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12916) <!-- Reviewable:end -->
|
|
highfive
commented
Sep 8, 2016
|
|
@bors-servo retry #13165 |
…espeanut Create `mach bootstrap` based on Mozilla's mozboot bootstrapper Fixes #12914 I've made this few weeks ago, its an example how could everything looks like. It downloads and setup all needed dependencies for MSVC. It's has version in case if some dependencies need to be updated. Zip files and folder in zip need to be named ``<dep>-<version>``. Also if cmake already exist in PATH, it won't download it again. I want opinion on that, if this is right approaches and how to improve it. cc @vvuk <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12916) <!-- Reviewable:end -->
|
|
UK992 commentedAug 17, 2016
•
edited
Fixes #12914
I've made this few weeks ago, its an example how could everything looks like.
It downloads and setup all needed dependencies for MSVC.
It's has version in case if some dependencies need to be updated.
Zip files and folder in zip need to be named
<dep>-<version>.Also if cmake already exist in PATH, it won't download it again.
I want opinion on that, if this is right approaches and how to improve it.
cc @vvuk
This change is