Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Setup.py was still allowing install with python 2. This should force python to be at least 3 in order for setup.py to run.
  • Loading branch information
IanSudbery authored May 24, 2024
1 parent 9ce3a70 commit c64df9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

major, minor1, minor2, s, tmp = sys.version_info

if (major == 2 and minor1 < 7) or major < 2:
raise SystemExit("""umi_tools requires Python 2.7 or later.""")
if major < 3:
raise SystemExit("""umi_tools requires Python 3 or later.""")

umi_tools_packages = ["umi_tools"]
umi_tools_package_dirs = {'umi_tools': 'umi_tools'}
Expand Down Expand Up @@ -56,7 +56,7 @@

try:
import pysam
if LooseVersion(pysam.__version__) < LooseVersion('0.8.4'):
if LooseVersion(pysam.__version__) < LooseVersion('0.16.0.1'):
print("""
######################################################################
Expand All @@ -70,7 +70,7 @@
""")

install_requires.append("pysam>=0.8.4")
install_requires.append("pysam>=0.16.0.1")

except ImportError:
install_requires.append("pysam")
Expand Down

0 comments on commit c64df9a

Please sign in to comment.