File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ cp "$SPARK_HOME"/conf/*.template "$DISTDIR"/conf
228228cp " $SPARK_HOME /README.md" " $DISTDIR "
229229cp -r " $SPARK_HOME /bin" " $DISTDIR "
230230cp -r " $SPARK_HOME /python" " $DISTDIR "
231+ zip -r " $DISTDIR " /python/lib/pyspark.zip " $SPARK_HOME " /python/lib/pyspark
231232cp -r " $SPARK_HOME /sbin" " $DISTDIR "
232233cp -r " $SPARK_HOME /ec2" " $DISTDIR "
233234
Original file line number Diff line number Diff line change @@ -361,20 +361,12 @@ object PySparkAssembly {
361361 // to be included in the assembly. We can't just add "python/" to the assembly's resource dir
362362 // list since that will copy unneeded / unwanted files.
363363 resourceGenerators in Compile <+= resourceManaged in Compile map { outDir : File =>
364- val src = new File (BuildCommons .sparkHome, " python/pyspark" )
365-
366- val zipFile = new File (BuildCommons .sparkHome , " python/lib/pyspark.zip" )
367- IO .delete(zipFile)
368- def entries (f : File ): List [File ] =
369- f :: (if (f.isDirectory) IO .listFiles(f).toList.flatMap(entries(_)) else Nil )
370- IO .zip(entries(src).map(
371- d => (d, d.getAbsolutePath.substring(src.getParent.length + 1 ))),
372- zipFile)
373-
374364 val dst = new File (outDir, " pyspark" )
375365 if (! dst.isDirectory()) {
376366 require(dst.mkdirs())
377367 }
368+
369+ val src = new File (BuildCommons .sparkHome, " python/pyspark" )
378370 copy(src, dst)
379371 }
380372 )
You can’t perform that action at this time.
0 commit comments