Skip to content

Commit

Permalink
setup: use python_requires to check version
Browse files Browse the repository at this point in the history
  • Loading branch information
behrmann committed Feb 18, 2020
1 parent 5304809 commit bde543b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ def finalize_options(self):
def run(self):
self.spawn(['pandoc', '-t', 'man', '-o', 'mkosi.1', 'mkosi.md'])

if sys.version_info < (3, 6):
sys.exit("Sorry, we need at least Python 3.6.")


setup(
name="mkosi",
Expand All @@ -29,6 +26,7 @@ def run(self):
maintainer="mkosi contributors",
maintainer_email="systemd-devel@lists.freedesktop.org",
license="LGPLv2+",
python_requires=">=3.6",
py_modules=["mkosi"],
cmdclass = { "man": BuildManpage },
entry_points="""
Expand Down

0 comments on commit bde543b

Please sign in to comment.