Skip to content

Commit

Permalink
spykfunc: integrate sparkmanager. (spack#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Aug 31, 2020
1 parent 32d9d11 commit a787b78
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions var/spack/repos/builtin/packages/spykfunc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Spykfunc(PythonPackage):
git = "ssh://bbpcode.epfl.ch/building/Spykfunc"

version('develop', submodules=True, get_full_repo=True)
version('0.15.7pre3', branch='sandbox/matwolf/funcz-259', submodules=True, get_full_repo=True)
version('0.15.6', tag='v0.15.6', submodules=True, get_full_repo=True)
version('0.15.3', tag='v0.15.3', submodules=True, get_full_repo=True)
version('0.15.2', tag='v0.15.2', submodules=True, get_full_repo=True)
Expand All @@ -38,7 +39,6 @@ class Spykfunc(PythonPackage):
depends_on('spark+hadoop@3.0.0:', type='run')
depends_on('hadoop@:2.999', type='run')

depends_on('py-bb5', type=('build', 'run'), when='@:0.15.6')
depends_on('py-docopt', type=('build', 'run'))
depends_on('py-future', type=('build', 'run'))
depends_on('py-funcsigs', type=('build', 'run'))
Expand All @@ -54,7 +54,10 @@ class Spykfunc(PythonPackage):
depends_on('py-progress', type=('build', 'run'))
depends_on('py-pyarrow+parquet@0.15.1', type=('build', 'run'))
depends_on('py-pyspark@3.0.0', type=('build', 'run'))
depends_on('py-sparkmanager', type=('build', 'run'))
depends_on('py-six', type=('build', 'run'), when='@0.15.7:')

depends_on('py-bb5', type=('build', 'run'), when='@:0.15.6')
depends_on('py-sparkmanager', type=('build', 'run'), when='@:0.15.6')

patch('setup-spark3.patch', when='@:0.15.6 ^spark@3:')
patch('properties-spark3.patch', when='@:0.15.6 ^spark@3:')
Expand All @@ -72,8 +75,8 @@ def setup_run_environment(self, env):
if self.spec.satisfies('@:0.15.6'):
env.prepend_path('PATH',
os.path.join(self.spec['py-bb5'].prefix, 'bin'))
env.prepend_path('PATH',
os.path.join(self.spec['py-sparkmanager'].prefix,
'bin'))
env.prepend_path('PATH',
os.path.join(self.spec['py-sparkmanager'].prefix,
'bin'))
env.prepend_path('PATH',
os.path.join(self.spec['spark'].prefix, 'bin'))

0 comments on commit a787b78

Please sign in to comment.