HyukjinKwon opened a new pull request #28243: 
[SPARK-29672][BUILD][PYTHON][FOLLOW-UP] Recover PySpark via pip installation 
with deprecated Python 2, 3.4 and 3.5
URL: https://github.com/apache/spark/pull/28243
 
 
   ### What changes were proposed in this pull request?
   
   The RC fails to install against Python 2.7 via `pip`. We deprecated but 
didn't remove Python 2, 3.4 and 3.5 support yet. This PR partially reverts the 
changes from SPARK-29672 to recover Python 2, 3.4 and 3.5 pip installation.
   
   ```bash
   python2.7 -m pip install 
https://dist.apache.org/repos/dist/dev/spark/v3.0.0-rc1-bin/pyspark-3.0.0.tar.gz
   ```
   ```
   ...
   Collecting 
https://dist.apache.org/repos/dist/dev/spark/v3.0.0-rc1-bin/pyspark-3.0.0.tar.gz
     Using cached 
https://dist.apache.org/repos/dist/dev/spark/v3.0.0-rc1-bin/pyspark-3.0.0.tar.gz
 (203.0 MB)
       ERROR: Command errored out with exit status 1:
        command: 
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
 -c 'import sys, setuptools, tokenize; sys.argv[0] = 
'"'"'/private/var/folders/_1/bzcp960d0hlb988k90654z2w0000gp/T/pip-req-build-sfCnmZ/setup.py'"'"';
 
__file__='"'"'/private/var/folders/_1/bzcp960d0hlb988k90654z2w0000gp/T/pip-req-build-sfCnmZ/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', 
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info 
--egg-base 
/private/var/folders/_1/bzcp960d0hlb988k90654z2w0000gp/T/pip-req-build-sfCnmZ/pip-egg-info
            cwd: 
/private/var/folders/_1/bzcp960d0hlb988k90654z2w0000gp/T/pip-req-build-sfCnmZ/
       Complete output (6 lines):
       Traceback (most recent call last):
         File "<string>", line 1, in <module>
         File 
"/private/var/folders/_1/bzcp960d0hlb988k90654z2w0000gp/T/pip-req-build-sfCnmZ/setup.py",
 line 27
           file=sys.stderr)
               ^
       SyntaxError: invalid syntax
       ----------------------------------------
   ERROR: Command errored out with exit status 1: python setup.py egg_info 
Check the logs for full command output.
   ```
   
   ### Why are the changes needed?
   
   To keep the deprecated support instead of removing.
   
   ### Does this PR introduce any user-facing change?
   
   No, it's the change in unreleased branches only yet.
   
   ### How was this patch tested?
   
   ```bash
   ./build/mvn -DskipTests -Phive -Phive-thriftserver clean package
   cd python
   python2.7 setup.py sdist
   python2.7 -m pip install pyspark-3.1.0.dev0.tar.gz
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to