Skip to content

Commit

Permalink
[query] permit any compatible patch version (#13111)
Browse files Browse the repository at this point in the history
  • Loading branch information
danking authored May 25, 2023
1 parent 7f088a0 commit 3d7c110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hail/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def add_dependencies(fname):
if pkg.startswith('pyspark') and os.path.exists('../env/SPARK_VERSION'):
with open('../env/SPARK_VERSION', 'r') as file:
spark_version = file.read()
dependencies.append(f'pyspark=={spark_version}')
[major, minor, patch] = spark_version.split('.')
dependencies.append(f'pyspark>={major}.{minor},<{int(major)+1}')
else:
dependencies.append(pkg)
add_dependencies('requirements.txt')
Expand Down

0 comments on commit 3d7c110

Please sign in to comment.