Skip to content

Commit

Permalink
Merge pull request grpc#11869 from jtattermusch/kokoro_fix_python_art…
Browse files Browse the repository at this point in the history
…ifacts

Fix python 2.7 & 3.4 artifacts on kokoro
  • Loading branch information
jtattermusch committed Jul 18, 2017
2 parents e5ba80b + cb8eaaa commit 10bed24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/distrib/python/grpcio_tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
# envvars) without adding yet more GRPC-specific envvars.
# See https://sourceforge.net/p/mingw-w64/bugs/363/
if '32' in platform.architecture()[0]:
EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime32 -D_timeb=__timeb32 -D_ftime_s=_ftime32_s'
EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime32 -D_timeb=__timeb32 -D_ftime_s=_ftime32_s -D_hypot=hypot'
else:
EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64'
EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64 -D_hypot=hypot'
else:
# We need to statically link the C++ Runtime, only the C runtime is
# available dynamically
Expand Down
3 changes: 3 additions & 0 deletions tools/internal_ci/windows/grpc_build_artifacts.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ rename C:\Python34_32bit Python34_32bits
rename C:\Python35_32bit Python35_32bits
rename C:\Python36_32bit Python36_32bits

pacman -S --noconfirm mingw64/mingw-w64-x86_64-gcc mingw32/mingw-w64-i686-gcc

@rem make sure msys binaries are preferred over cygwin binaries
@rem set path to python 2.7
set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH%


@rem enter repo root
cd /d %~dp0\..\..\..

Expand Down
4 changes: 2 additions & 2 deletions tools/run_tests/artifacts/build_artifact_python.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.


set PATH=C:\%1;C:\%1\scripts;C:\msys64\mingw%2\bin;%PATH%
@rem set path to python & mingw compiler
set PATH=C:\%1;C:\%1\scripts;C:\msys64\mingw%2\bin;C:\tools\msys64\mingw%2\bin;%PATH%

pip install --upgrade six
pip install --upgrade setuptools
Expand Down

0 comments on commit 10bed24

Please sign in to comment.