mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace embedded Python 3 distribution in CI with full installation.
This commit is contained in:
parent
a627dde0d0
commit
30da8eca2f
2 changed files with 18 additions and 26 deletions
|
@ -474,9 +474,13 @@ class WindowsGenericWorkerTask(GenericWorkerTask):
|
|||
if self.rdp_info_artifact_name:
|
||||
rdp_scope = "generic-worker:allow-rdp:%s/%s" % (self.provisioner_id, self.worker_type)
|
||||
self.scopes.append(rdp_scope)
|
||||
self.scopes.append("generic-worker:os-group:proj-servo/win2016/Administrators")
|
||||
self.scopes.append("generic-worker:run-as-administrator:proj-servo/win2016")
|
||||
self.with_features("runAsAdministrator")
|
||||
return dict_update_if_truthy(
|
||||
super().build_worker_payload(),
|
||||
rdpInfo=self.rdp_info_artifact_name,
|
||||
osGroups=["Administrators"]
|
||||
)
|
||||
|
||||
def with_rdp_info(self, *, artifact_name):
|
||||
|
@ -647,22 +651,16 @@ class WindowsGenericWorkerTask(GenericWorkerTask):
|
|||
You may need to remove `python37._pth` from the ZIP in order to work around
|
||||
<https://bugs.python.org/issue34841>.
|
||||
"""
|
||||
return self \
|
||||
.with_directory_mount(
|
||||
"https://www.python.org/ftp/python/3.7.3/python-3.7.3-embed-amd64.zip",
|
||||
sha256="6de14c9223226cf0cd8c965ecb08c51d62c770171a256991b4fddc25188cfa8e",
|
||||
path="python3",
|
||||
) \
|
||||
.with_path_from_homedir("python3", "python3\\Scripts") \
|
||||
.with_curl_script("https://bootstrap.pypa.io/get-pip.py", "get-pip.py") \
|
||||
.with_script("""
|
||||
echo import site>>%HOMEDRIVE%%HOMEPATH%%\\python3\\python37._pth
|
||||
echo import sys>%HOMEDRIVE%%HOMEPATH%%\\python3\\sitecustomize.py
|
||||
echo sys.path.insert(0, '')>>%HOMEDRIVE%%HOMEPATH%%\\python3\\sitecustomize.py
|
||||
|
||||
python get-pip.py
|
||||
python -m pip install virtualenv==20.2.1
|
||||
""")
|
||||
return (
|
||||
self
|
||||
.with_curl_script(
|
||||
"https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe",
|
||||
"do-the-python.exe"
|
||||
)
|
||||
.with_script("do-the-python.exe /quiet TargetDir=%HOMEDRIVE%%HOMEPATH%\\python3")
|
||||
.with_path_from_homedir("python3", "python3\\Scripts")
|
||||
.with_script("pip install virtualenv==20.2.1")
|
||||
)
|
||||
|
||||
|
||||
class UnixTaskMixin(Task):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue