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

Export Windows Python on Windows builders #537

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

fixup!

  • Loading branch information
UK992 committed Nov 16, 2016
commit 693b25c11b2d759a829464b1c81d23754e471715
@@ -48,6 +48,8 @@ def without(self, to_unset):
'MSYS': 'winsymlinks=lnk',
'MSYSTEM': 'MINGW64',
'PATH': ';'.join([
r'C:\Python27',
r'C:\Python27\Scripts',
r'C:\msys64\mingw64\bin',
r'C:\msys64\usr\bin',
r'C:\Windows\system32',
@@ -176,11 +176,9 @@ def make_step(self, command):

command = command.split(' ')

# Add `bash -l -c` and export Windows Python before every command
# on Windows builders
bash_args = "export PATH=/c/python27:/c/python27/scripts:$PATH; "
command_win = ["bash", "-l", "-c", bash_args + " ".join(command)]
step_kwargs['command'] = command_win if self.is_windows else command
# Add `bash` before every command on Windows builders
bash_args = ["bash"] if self.is_windows else []
step_kwargs['command'] = bash_args + command
if self.is_windows:
step_env += envs.Environment({
# Set home directory, to avoid adding `cd` command every time
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.