Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit bcdaf3a

Browse files
authored
Merge pull request #882 from ethereum-mining/ci-python3
CI: Use Python 3 for future migration to Hunter 0.20
2 parents fa1f2bb + 1bdbffb commit bcdaf3a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ branches:
88
- master
99
- ci
1010
- travis
11+
- hunter
1112
- /^release.*$/
1213
matrix:
1314
include:
@@ -27,9 +28,11 @@ before_install: |
2728
fi
2829
if [ "$TRAVIS_OS_NAME" = linux ]; then
2930
scripts/install_cmake.sh
30-
sudo pip install --upgrade requests pyopenssl
31+
pyenv local 3.6
32+
pip install --user requests
3133
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
32-
sudo pip install requests
34+
HOMEBREW_NO_AUTO_UPDATE=1 brew install -q python3
35+
pip3 install -q requests
3336
fi
3437
script:
3538
- cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ HunterGate(
1818
)
1919

2020
if(HUNTER_ENABLED)
21-
find_package(PythonInterp)
21+
find_package(PythonInterp 3)
2222
if(PYTHONINTERP_FOUND)
2323
hunter_gate_self(
2424
"${HUNTER_CACHED_ROOT}"

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ install: | # Download CUDA Windows installer (local) and extract /compiler/* to
2020
7z x CUDA-v9.0-WindowsServer2012.zip -oC:/
2121
set PATH=%PATH%;C:/CUDA/v9.0/bin
2222
nvcc -V
23+
set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
2324
pip install requests
2425
before_build:
2526
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCUDA=ON -DAPICORE=ON

0 commit comments

Comments
 (0)