Fixed pandoc dependency issue in python/setup.py
Fixed pandoc dependency issue in python/setup.py

## Problem Description

When pyspark is listed as a dependency of another package, installing
the other package will cause an install failure in pyspark. When the
other package is being installed, pyspark's setup_requires requirements
are installed including pypandoc. Thus, the exception handling on
setup.py:152 does not work because the pypandoc module is indeed
available. However, the pypandoc.convert() function fails if pandoc
itself is not installed (in our use cases it is not). This raises an
OSError that is not handled, and setup fails.

The following is a sample failure:
```
$ which pandoc
$ pip freeze | grep pypandoc
pypandoc==1.4
$ pip install pyspark
Collecting pyspark
  Downloading pyspark-2.2.0.post0.tar.gz (188.3MB)
    100% |████████████████████████████████| 188.3MB 16.8MB/s
    Complete output from command python setup.py egg_info:
    Maybe try:

        sudo apt-get install pandoc
    See http://johnmacfarlane.net/pandoc/installing.html
    for installation options
    ---------------------------------------------------------------

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-mfnizcwa/pyspark/setup.py", line 151, in <module>
        long_description = pypandoc.convert('README.md', 'rst')
      File "/home/tbeck/.virtualenvs/cem/lib/python3.5/site-packages/pypandoc/__init__.py", line 69, in convert
        outputfile=outputfile, filters=filters)
      File "/home/tbeck/.virtualenvs/cem/lib/python3.5/site-packages/pypandoc/__init__.py", line 260, in _convert_input
        _ensure_pandoc_path()
      File "/home/tbeck/.virtualenvs/cem/lib/python3.5/site-packages/pypandoc/__init__.py", line 544, in _ensure_pandoc_path
        raise OSError("No pandoc was found: either install pandoc and add it\n"
    OSError: No pandoc was found: either install pandoc and add it
    to your PATH or or call pypandoc.download_pandoc(...) or
    install pypandoc wheels with included pandoc.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-mfnizcwa/pyspark/
```

## What changes were proposed in this pull request?

This change simply adds an additional exception handler for the OSError
that is raised. This allows pyspark to be installed client-side without requiring pandoc to be installed.

## How was this patch tested?

I tested this by building a wheel package of pyspark with the change applied. Then, in a clean virtual environment with pypandoc installed but pandoc not available on the system, I installed pyspark from the wheel.

Here is the output

```
$ pip freeze | grep pypandoc
pypandoc==1.4
$ which pandoc
$ pip install --no-cache-dir ../spark/python/dist/pyspark-2.3.0.dev0-py2.py3-none-any.whl
Processing /home/tbeck/work/spark/python/dist/pyspark-2.3.0.dev0-py2.py3-none-any.whl
Requirement already satisfied: py4j==0.10.6 in /home/tbeck/.virtualenvs/cem/lib/python3.5/site-packages (from pyspark==2.3.0.dev0)
Installing collected packages: pyspark
Successfully installed pyspark-2.3.0.dev0
```

Author: Tucker Beck <tucker.beck@rentrakmail.com>

Closes #18981 from dusktreader/dusktreader/fix-pandoc-dependency-issue-in-setup_py.

vinodkc/spark,LantaoJin/spark,BryanCutler/spark,narahari92/spark,aosagie/spark,witgo/spark,maropu/spark,taroplus/spark,actuaryzhang/spark,highfei2011/spark,wzhfy/spark,JoshRosen/spark,WindCanDie/spark,cloud-fan/spark,mahak/spark,milliman/spark,mdespriee/spark,apache/spark,ptkool/spark,ericvandenbergfb/spark,vinodkc/spark,maropu/spark,wangyum/spark,caneGuy/spark,zuotingbing/spark,cin/spark,wangmiao1981/spark,darionyaphet/spark,kiszk/spark,dongjoon-hyun/spark,sahilTakiar/spark,sahilTakiar/spark,alunarbeach/spark,dbtsai/spark,apache/spark,dbtsai/spark,darionyaphet/spark,rezasafi/spark,rikima/spark,holdenk/spark,ron8hu/spark,esi-mineset/spark,ConeyLiu/spark,HyukjinKwon/spark,dbtsai/spark,hvanhovell/spark,srowen/spark,nchammas/spark,adrian-ionescu/apache-spark,xuanyuanking/spark,bdrillard/spark,ConeyLiu/spark,ron8hu/spark,zhouyejoe/spark,1haodian/spark,cin/spark,ericvandenbergfb/spark,facaiy/spark,1haodian/spark,spark-test/spark,rednaxelafx/apache-spark,sureshthalamati/spark,spark-test/spark,aray/spark,hhbyyh/spark,ahnqirage/spark,WeichenXu123/spark,icexelloss/spark,1haodian/spark,chuckchen/spark,saltstar/spark,ConeyLiu/spark,ptkool/spark,sahilTakiar/spark,ioana-delaney/spark,markhamstra/spark,rekhajoshm/spark,rikima/spark,ptkool/spark,saltstar/spark,techaddict/spark,HyukjinKwon/spark,debugger87/spark,skonto/spark,apache/spark,zhouyejoe/spark,nchammas/spark,jkbradley/spark,ron8hu/spark,yanboliang/spark,nlalevee/spark,dongjoon-hyun/spark,ptkool/spark,chuckchen/spark,eyalfa/spark,nchammas/spark,narahari92/spark,holdenk/spark,gengliangwang/spark,maropu/spark,guoxiaolongzte/spark,LantaoJin/spark,cin/spark,jiangxb1987/spark,actuaryzhang/spark,rednaxelafx/apache-spark,szhem/spark,actuaryzhang/spark,mahak/spark,nlalevee/spark,dongjoon-hyun/spark,zuotingbing/spark,BryanCutler/spark,joseph-torres/spark,ahnqirage/spark,michalsenkyr/spark,Aegeaner/spark,cloud-fan/spark,wzhfy/spark,chuckchen/spark,szhem/spark,zero323/spark,cloud-fan/spark,dbtsai/spark,jiangxb1987/spark,mahak/spark,JoshRosen/spark,milliman/spark,mahak/spark,WindCanDie/spark,hhbyyh/spark,spark-test/spark,zero323/spark,cin/spark,yanboliang/spark,adrian-ionescu/apache-spark,WeichenXu123/spark,ddna1021/spark,sureshthalamati/spark,tengpeng/spark,BryanCutler/spark,goldmedal/spark,shuangshuangwang/spark,wangyum/spark,pgandhi999/spark,caneGuy/spark,zhouyejoe/spark,akopich/spark,hhbyyh/spark,actuaryzhang/spark,ddna1021/spark,caneGuy/spark,ericvandenbergfb/spark,zuotingbing/spark,vinodkc/spark,taroplus/spark,bravo-zhang/spark,yanboliang/spark,BryanCutler/spark,michalsenkyr/spark,tejasapatil/spark,eyalfa/spark,wangmiao1981/spark,shuangshuangwang/spark,szhem/spark,jkbradley/spark,cloud-fan/spark,saltstar/spark,bravo-zhang/spark,WindCanDie/spark,akopich/spark,BryanCutler/spark,jiangxb1987/spark,ueshin/apache-spark,icexelloss/spark,guoxiaolongzte/spark,gengliangwang/spark,dongjoon-hyun/spark,shaneknapp/spark,srowen/spark,zero323/spark,zero323/spark,actuaryzhang/spark,ConeyLiu/spark,brad-kaiser/spark,skonto/spark,saltstar/spark,markhamstra/spark,michalsenkyr/spark,markhamstra/spark,milliman/spark,tejasapatil/spark,ahnqirage/spark,icexelloss/spark,JoshRosen/spark,nchammas/spark,zuotingbing/spark,maropu/spark,aray/spark,markhamstra/spark,tengpeng/spark,ron8hu/spark,minixalpha/spark,pgandhi999/spark,aosagie/spark,debugger87/spark,michalsenkyr/spark,wzhfy/spark,rezasafi/spark,yanboliang/spark,alunarbeach/spark,rekhajoshm/spark,taroplus/spark,facaiy/spark,vinodkc/spark,ddna1021/spark,highfei2011/spark,zzcclp/spark,chuckchen/spark,janewangfb/spark,bravo-zhang/spark,ddna1021/spark,alunarbeach/spark,facaiy/spark,mahak/spark,apache/spark,debugger87/spark,facaiy/spark,szhem/spark,spark-test/spark,rezasafi/spark,HyukjinKwon/spark,zzcclp/spark,sureshthalamati/spark,wangmiao1981/spark,skonto/spark,apache/spark,highfei2011/spark,BryanCutler/spark,esi-mineset/spark,kevinyu98/spark,jiangxb1987/spark,maropu/spark,rednaxelafx/apache-spark,rikima/spark,guoxiaolongzte/spark,zhouyejoe/spark,zzcclp/spark,akopich/spark,goldmedal/spark,zzcclp/spark,tejasapatil/spark,lvdongr/spark,ericvandenbergfb/spark,cin/spark,shubhamchopra/spark,icexelloss/spark,saltstar/spark,pgandhi999/spark,zero323/spark,ioana-delaney/spark,cloud-fan/spark,taroplus/spark,goldmedal/spark,kiszk/spark,akopich/spark,wzhfy/spark,gengliangwang/spark,techaddict/spark,ron8hu/spark,sureshthalamati/spark,rekhajoshm/spark,ueshin/apache-spark,JoshRosen/spark,ron8hu/spark,milliman/spark,caneGuy/spark,jkbradley/spark,skonto/spark,yanboliang/spark,szhem/spark,mdespriee/spark,Aegeaner/spark,darionyaphet/spark,adrian-ionescu/apache-spark,shaneknapp/spark,guoxiaolongzte/spark,lvdongr/spark,zuotingbing/spark,hhbyyh/spark,shaneknapp/spark,bdrillard/spark,lxsmnv/spark,rednaxelafx/apache-spark,markhamstra/spark,akopich/spark,WindCanDie/spark,rezasafi/spark,aray/spark,ahnqirage/spark,maropu/spark,taroplus/spark,zuotingbing/spark,srowen/spark,icexelloss/spark,narahari92/spark,zuotingbing/spark,LantaoJin/spark,esi-mineset/spark,rekhajoshm/spark,narahari92/spark,chuckchen/spark,pgandhi999/spark,witgo/spark,taroplus/spark,shaneknapp/spark,tengpeng/spark,gengliangwang/spark,kiszk/spark,cin/spark,mdespriee/spark,mdespriee/spark,tejasapatil/spark,debugger87/spark,LantaoJin/spark,bravo-zhang/spark,bravo-zhang/spark,goldmedal/spark,nlalevee/spark,joseph-torres/spark,LantaoJin/spark,wangyum/spark,apache/spark,markhamstra/spark,hhbyyh/spark,bdrillard/spark,narahari92/spark,dongjoon-hyun/spark,WindCanDie/spark,Aegeaner/spark,ron8hu/spark,brad-kaiser/spark,ioana-delaney/spark,shaneknapp/spark,wangyum/spark,mahak/spark,spark-test/spark,akopich/spark,eyalfa/spark,zhouyejoe/spark,nlalevee/spark,bdrillard/spark,jiangxb1987/spark,pgandhi999/spark,ericvandenbergfb/spark,rikima/spark,saltstar/spark,wangmiao1981/spark,wangmiao1981/spark,WindCanDie/spark,rednaxelafx/apache-spark,hvanhovell/spark,mahak/spark,wangyum/spark,lxsmnv/spark,jiangxb1987/spark,szhem/spark,highfei2011/spark,aosagie/spark,brad-kaiser/spark,darionyaphet/spark,techaddict/spark,techaddict/spark,ptkool/spark,brad-kaiser/spark,facaiy/spark,techaddict/spark,ueshin/apache-spark,aray/spark,akopich/spark,guoxiaolongzte/spark,debugger87/spark,cloud-fan/spark,rekhajoshm/spark,darionyaphet/spark,dbtsai/spark,shubhamchopra/spark,hvanhovell/spark,WeichenXu123/spark,mdespriee/spark,icexelloss/spark,shubhamchopra/spark,zzcclp/spark,kevinyu98/spark,skonto/spark,xuanyuanking/spark,witgo/spark,WeichenXu123/spark,tejasapatil/spark,hhbyyh/spark,guoxiaolongzte/spark,bdrillard/spark,shubhamchopra/spark,ddna1021/spark,goldmedal/spark,sahilTakiar/spark,facaiy/spark,skonto/spark,hvanhovell/spark,sahilTakiar/spark,WindCanDie/spark,joseph-torres/spark,saltstar/spark,narahari92/spark,holdenk/spark,shubhamchopra/spark,gengliangwang/spark,darionyaphet/spark,kevinyu98/spark,minixalpha/spark,rekhajoshm/spark,dbtsai/spark,witgo/spark,lxsmnv/spark,wzhfy/spark,zzcclp/spark,alunarbeach/spark,shaneknapp/spark,witgo/spark,apache/spark,eyalfa/spark,nchammas/spark,ddna1021/spark,adrian-ionescu/apache-spark,esi-mineset/spark,xuanyuanking/spark,adrian-ionescu/apache-spark,ptkool/spark,highfei2011/spark,adrian-ionescu/apache-spark,xuanyuanking/spark,sureshthalamati/spark,lvdongr/spark,taroplus/spark,ueshin/apache-spark,aosagie/spark,wangyum/spark,Aegeaner/spark,ericvandenbergfb/spark,shubhamchopra/spark,cin/spark,actuaryzhang/spark,techaddict/spark,dongjoon-hyun/spark,wangyum/spark,shuangshuangwang/spark,joseph-torres/spark,lvdongr/spark,tengpeng/spark,lvdongr/spark,sahilTakiar/spark,hvanhovell/spark,pgandhi999/spark,michalsenkyr/spark,ioana-delaney/spark,ahnqirage/spark,dbtsai/spark,bravo-zhang/spark,wangmiao1981/spark,caneGuy/spark,rezasafi/spark,janewangfb/spark,szhem/spark,guoxiaolongzte/spark,lxsmnv/spark,milliman/spark,lvdongr/spark,sureshthalamati/spark,lvdongr/spark,vinodkc/spark,ConeyLiu/spark,LantaoJin/spark,joseph-torres/spark,nlalevee/spark,tengpeng/spark,maropu/spark,pgandhi999/spark,aray/spark,kevinyu98/spark,esi-mineset/spark,brad-kaiser/spark,JoshRosen/spark,alunarbeach/spark,nchammas/spark,bravo-zhang/spark,goldmedal/spark,rekhajoshm/spark,narahari92/spark,ahnqirage/spark,zhouyejoe/spark,srowen/spark,holdenk/spark,ioana-delaney/spark,dongjoon-hyun/spark,1haodian/spark,janewangfb/spark,sureshthalamati/spark,janewangfb/spark,JoshRosen/spark,rezasafi/spark,darionyaphet/spark,ddna1021/spark,markhamstra/spark,eyalfa/spark,BryanCutler/spark,xuanyuanking/spark,HyukjinKwon/spark,joseph-torres/spark,janewangfb/spark,WeichenXu123/spark,JoshRosen/spark,hhbyyh/spark,ahnqirage/spark,rikima/spark,matthewfranglen/spark,facaiy/spark,icexelloss/spark,1haodian/spark,xuanyuanking/spark,shuangshuangwang/spark,ericvandenbergfb/spark,kevinyu98/spark,debugger87/spark,kevinyu98/spark,HyukjinKwon/spark,hvanhovell/spark,minixalpha/spark,rikima/spark,zero323/spark,zzcclp/spark,aosagie/spark,Aegeaner/spark,tengpeng/spark,spark-test/spark,nchammas/spark,WeichenXu123/spark,mdespriee/spark,techaddict/spark,alunarbeach/spark,holdenk/spark,zhouyejoe/spark,janewangfb/spark,mdespriee/spark,chuckchen/spark,highfei2011/spark,shaneknapp/spark,milliman/spark,minixalpha/spark,shubhamchopra/spark,kiszk/spark,1haodian/spark,ueshin/apache-spark,ueshin/apache-spark,bdrillard/spark,esi-mineset/spark,ptkool/spark,rednaxelafx/apache-spark,hvanhovell/spark,HyukjinKwon/spark,lxsmnv/spark,gengliangwang/spark,shuangshuangwang/spark,rezasafi/spark,brad-kaiser/spark,witgo/spark,zero323/spark,HyukjinKwon/spark,eyalfa/spark,debugger87/spark,srowen/spark,kevinyu98/spark,srowen/spark,srowen/spark,eyalfa/spark,skonto/spark,jkbradley/spark,rednaxelafx/apache-spark,michalsenkyr/spark,milliman/spark,tejasapatil/spark,vinodkc/spark,yanboliang/spark,aray/spark,shuangshuangwang/spark,janewangfb/spark,ConeyLiu/spark,aosagie/spark,alunarbeach/spark,nlalevee/spark,wangmiao1981/spark,ueshin/apache-spark,xuanyuanking/spark,witgo/spark,aosagie/spark,goldmedal/spark,caneGuy/spark,yanboliang/spark,ioana-delaney/spark,adrian-ionescu/apache-spark,WeichenXu123/spark,spark-test/spark,chuckchen/spark,cloud-fan/spark,Aegeaner/spark,minixalpha/spark,nlalevee/spark,gengliangwang/spark,shuangshuangwang/spark,kiszk/spark,wzhfy/spark,holdenk/spark,esi-mineset/spark,actuaryzhang/spark,minixalpha/spark,1haodian/spark,lxsmnv/spark,kiszk/spark,jkbradley/spark,tejasapatil/spark,jkbradley/spark,kiszk/spark,holdenk/spark,Aegeaner/spark,sahilTakiar/spark,highfei2011/spark,vinodkc/spark,caneGuy/spark,minixalpha/spark,ConeyLiu/spark,jkbradley/spark,wzhfy/spark,ioana-delaney/spark,michalsenkyr/spark,tengpeng/spark,brad-kaiser/spark,bdrillard/spark,joseph-torres/spark,LantaoJin/spark,jiangxb1987/spark,lxsmnv/spark,rikima/spark,aray/spark