Skip to content

Commit e1ece6a

Browse files
shaneknappHyukjinKwon
authored andcommitted
[SPARK-25079][PYTHON] update python3 executable to 3.6.x
## What changes were proposed in this pull request? have jenkins test against python3.6 (instead of 3.4). ## How was this patch tested? extensive testing on both the centos and ubuntu jenkins workers. NOTE: this will need to be backported to all active branches. Closes #24266 from shaneknapp/updating-python3-executable. Authored-by: shane knapp <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
1 parent 3748b38 commit e1ece6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dev/run-tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ def main():
546546
hadoop_version = os.environ.get("AMPLAB_JENKINS_BUILD_PROFILE", "hadoop2.7")
547547
test_env = "amplab_jenkins"
548548
# add path for Python3 in Jenkins if we're calling from a Jenkins machine
549-
os.environ["PATH"] = "/home/anaconda/envs/py3k/bin:" + os.environ.get("PATH")
549+
# TODO(sknapp): after all builds are ported to the ubuntu workers, change this to be:
550+
# /home/jenkins/anaconda2/envs/py36/bin
551+
os.environ["PATH"] = "/home/anaconda/envs/py36/bin:" + os.environ.get("PATH")
550552
else:
551553
# else we're running locally and can use local settings
552554
build_tool = "sbt"

python/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def run_individual_python_test(target_dir, test_name, pyspark_python):
160160

161161

162162
def get_default_python_executables():
163-
python_execs = [x for x in ["python2.7", "python3.4", "pypy"] if which(x)]
163+
python_execs = [x for x in ["python2.7", "python3.6", "pypy"] if which(x)]
164164
if "python2.7" not in python_execs:
165165
LOGGER.warning("Not testing against `python2.7` because it could not be found; falling"
166166
" back to `python` instead")

0 commit comments

Comments
 (0)