Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
7763f3c
Adds setup.py
Apr 14, 2016
30debc7
Fix spacing.
Apr 14, 2016
5155531
updUpdate py4j dependency. Add mllib to extas_require, fix some inden…
Oct 12, 2016
2f0bf9b
Adds MANIFEST.in file.
Oct 12, 2016
4c00b98
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 12, 2016
7ff8d0f
Start working towards post-2.0 pip installable PypSpark (so including…
holdenk Oct 12, 2016
610b975
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 16, 2016
cb2e06d
So MANIFEST and setup can't refer to things above the root of the pro…
holdenk Oct 16, 2016
01f791d
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 18, 2016
e2e4d1c
Keep the symlink
holdenk Oct 18, 2016
fb15d7e
Some progress we need to use SDIST but is ok
holdenk Oct 18, 2016
aab7ee4
Reenable cleanup
holdenk Oct 18, 2016
5a57620
Try and provide a clear error message when pip installed directly, fi…
holdenk Oct 19, 2016
646aa23
Add two scripts
holdenk Oct 19, 2016
36c9d45
package_data doesn't work so well with nested directories so instead …
holdenk Oct 19, 2016
a78754b
Use copyfile also check for jars dir too
holdenk Oct 20, 2016
955e92b
Check if pip installed when finding the shell file
holdenk Oct 20, 2016
2d88a40
Check if jars dir exists rather than release file
holdenk Oct 20, 2016
9e5c532
Start working a bit on the docs
holdenk Oct 23, 2016
be7eadd
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 23, 2016
07d3849
Try and include pyspark zip file for yarn use
holdenk Oct 23, 2016
11b5fa8
Copy pyspark zip for use in yarn cluster mode
holdenk Oct 23, 2016
8791f82
Start adding scripts to test pip installability
holdenk Oct 24, 2016
92837a3
Works on yarn, works with spark submit, still need to fix import base…
holdenk Oct 24, 2016
6947a85
Start updating find-spark-home to be available in many cases.
holdenk Oct 24, 2016
944160c
Use Switch to find_spark_home.py
holdenk Oct 24, 2016
5bf0746
Move to under pyspark
holdenk Oct 24, 2016
435f842
Update to py4j 0.10.4 in the deps, also switch how we are copying fin…
holdenk Oct 24, 2016
27ca27e
Update java gateway to use _find_spark_home function, add quick sanit…
holdenk Oct 24, 2016
df126cf
Lint fixes
holdenk Oct 24, 2016
70a78a0
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 24, 2016
555d443
More progress on running the pip installability tests
holdenk Oct 24, 2016
051abe5
Try and unify path used for shell script file, add a README.md file f…
holdenk Oct 25, 2016
b345bdb
Add README file
holdenk Oct 25, 2016
28da44b
Switch version to a PEP440 version otherwise it can't go on PyPiTest,…
holdenk Oct 25, 2016
0f16c08
More notes
holdenk Oct 25, 2016
574c1f0
Add pip-sanity-check.py to the linter list and add a note that we sho…
holdenk Oct 25, 2016
6299744
Fix handling of long_description, add check for existing artifacts in…
holdenk Oct 25, 2016
17104c1
Fix check for number of sdists
holdenk Oct 25, 2016
0447ea2
Typo fixes, make sure SPARK_HOME isn't being set based on PWD during …
holdenk Oct 25, 2016
c335c80
More typo fixes
holdenk Oct 25, 2016
146567b
We are python 2 and 3 compat :)
holdenk Oct 25, 2016
0e2223d
Use more standard version.py file, check sys version is greater than …
holdenk Oct 25, 2016
849ded0
First pass at updating the release-build script
holdenk Oct 25, 2016
cf5ab7e
consider handling being inside a release
holdenk Oct 25, 2016
4b69871
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 26, 2016
3788bfb
Fix up make-distribution to build the python artifacts, update releas…
holdenk Oct 26, 2016
308a168
Fix python lint errors and add linting to setup.py
holdenk Oct 26, 2016
74b79c4
Add python packaging tests to run-tests script
holdenk Oct 26, 2016
3056553
Add license header to setup.cfg
holdenk Oct 26, 2016
125ae2a
Fix typo PyPi to PyPI
holdenk Oct 26, 2016
d2da8b0
Fix typo PyPi to PyPI (2)
holdenk Oct 26, 2016
595409f
Use copytree and rmtree on windows - note: still not explicitly teste…
holdenk Oct 27, 2016
cf421b0
Fix style issues
holdenk Oct 27, 2016
31ac8e2
Add license header to version.py and manifest.in
holdenk Oct 27, 2016
0e9cb8d
newer version of numpy are fine
holdenk Oct 27, 2016
264b253
Add BLOCK_PYSPARK_PIP_TESTS to jenkins test error codes
holdenk Oct 27, 2016
802f682
Add README.md as description file to metadata in setup.cfg
holdenk Oct 27, 2016
fba37a0
We store version in a different file now
holdenk Oct 27, 2016
8ba499f
Early PR feedback, switch to os.path.join rather than strings, add a …
holdenk Oct 27, 2016
1c177f3
Add BLOCK_PYSPARK_PIP_TESTS to error code set
holdenk Oct 27, 2016
6ace070
Fix path used to run the pip tests in jenkins
holdenk Oct 28, 2016
ab8ca53
Fix typo
holdenk Oct 28, 2016
77f8eca
Show how to build the sdist in building-spark.md
holdenk Oct 30, 2016
f590898
Have clearer messages (as suggested by @viirya)
holdenk Oct 30, 2016
f956a5d
Try and improve the wording a little bit
holdenk Oct 30, 2016
489d4e3
Fix typo
holdenk Oct 31, 2016
9e4fdb5
Drop extra .gz
holdenk Oct 31, 2016
e668af6
Drop '
holdenk Oct 31, 2016
3bf961e
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Oct 31, 2016
c9d48d3
Make packaging PySpark as pip optional part of make-distirbution the …
holdenk Nov 1, 2016
e9f1e8e
Fix indentation and clarify error message (since we still technically…
holdenk Nov 1, 2016
1cdcf61
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Nov 1, 2016
7af912a
Move Python version check up earlier.
holdenk Nov 2, 2016
c77d9fd
Fix python3 setup
holdenk Nov 2, 2016
7b1d8b7
test both python/python3 if they are installed on the system for pip …
holdenk Nov 2, 2016
298bda6
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Nov 3, 2016
9770260
Actually run the python3 packaging tests and fix path finding
holdenk Nov 3, 2016
99940ee
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Nov 4, 2016
f6806b2
Break up sentence in setup.py error message, drop 3.0-3.3 tags from s…
holdenk Nov 5, 2016
b0cd655
Just copy shell in advance because the setup time copy has issues wit…
holdenk Nov 6, 2016
6bb422e
Change shell symlink
holdenk Nov 6, 2016
b5b4713
Move the copy up earlier for python3 venv install issue
holdenk Nov 6, 2016
2b808dc
Fix normalizaiton of paths
holdenk Nov 6, 2016
b958f7e
Handle edit mode based installations
holdenk Nov 6, 2016
577554b
Just skip caching rather than cleaning up the wheels
holdenk Nov 6, 2016
9cf2ec9
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Nov 6, 2016
154a287
Remove % formatting and replace with format and os.path.join
holdenk Nov 6, 2016
b478bdf
s/True/pass/ in the places where it makes sense, fix a formatting issue
holdenk Nov 7, 2016
fb62a8a
Test both edit mode and regular installs
holdenk Nov 7, 2016
6540964
Add exit(-1)
holdenk Nov 7, 2016
d2389ed
CR feedback - switch symlink support checking into a function and use…
holdenk Nov 8, 2016
48cd1ad
Add a docstring comment just cause
holdenk Nov 8, 2016
23109a4
Fix support_symlinks / docstring
holdenk Nov 8, 2016
49fc6db
use update to usr bin env python
holdenk Nov 8, 2016
7001f90
s/deps/TEMP_PATH/ incase we change it later
holdenk Nov 9, 2016
8d74672
Merge branch 'master' into SPARK-1267-pip-install-pyspark
holdenk Nov 10, 2016
210c9d4
drop usr/bin/env python since we don't want MANIFEST to run as a script
holdenk Nov 11, 2016
9efca67
Use python2 if available and fallback to python
holdenk Nov 12, 2016
fd3e89c
Fix more shell check issues
holdenk Nov 12, 2016
587c0eb
Fix shellcheck issues - note most of these were prexisting but since …
holdenk Nov 12, 2016
2904998
Move pip tests into a self cleaning up script instead of 2
holdenk Nov 12, 2016
3345eb9
Clarify what is required to build the PySpark pip installable artifacts.
holdenk Nov 12, 2016
f86574a
Make messaging more consistent
holdenk Nov 12, 2016
05fc25f
Switch to "s cause its easier to do that with sed rewrites
holdenk Nov 14, 2016
dd243a2
Update release tagging script
holdenk Nov 14, 2016
df5a3f9
Drop the notice since the script does it now
holdenk Nov 14, 2016
d753d80
Fix the next version output and update the comment to be more precise
holdenk Nov 14, 2016
e139855
Add a global-exclude and add a format to the setup.py for multiple as…
holdenk Nov 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check if pip installed when finding the shell file
  • Loading branch information
holdenk committed Oct 20, 2016
commit 955e92b556b2af3f22acd78e8b800a44d900cb31
7 changes: 6 additions & 1 deletion bin/pyspark
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ export PYTHONPATH="${SPARK_HOME}/python/lib/py4j-0.10.3-src.zip:$PYTHONPATH"

# Load the PySpark shell.py script when ./pyspark is used interactively:
export OLD_PYTHONSTARTUP="$PYTHONSTARTUP"
export PYTHONSTARTUP="${SPARK_HOME}/python/pyspark/shell.py"
# Check if we are pip installed or otherwise
if [ -d ${SPARK_HOME}/python/pyspark ]; then
export PYTHONSTARTUP="${SPARK_HOME}/python/pyspark/shell.py"
else
export PYTHONSTARTUP="${SPARK_HOME}/shell.py"
fi

# For pyspark tests
if [[ -n "$SPARK_TESTING" ]]; then
Expand Down
5 changes: 5 additions & 0 deletions bin/pyspark2.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ set PYTHONPATH=%SPARK_HOME%\python;%PYTHONPATH%
set PYTHONPATH=%SPARK_HOME%\python\lib\py4j-0.10.3-src.zip;%PYTHONPATH%

set OLD_PYTHONSTARTUP=%PYTHONSTARTUP%
rem Check if we are pip installed or not
IF EXIST %SPARK_HOME%\python\pyspark\shell.py (
set PYTHONSTARTUP=%SPARK_HOME%\python\pyspark\shell.py
) ELSE (
set PYTHONSTARTUP=%SPARK_HOME%\shell.py
)

call "%SPARK_HOME%\bin\spark-submit2.cmd" pyspark-shell-main --name "PySparkShell" %*