mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Fixed double python version check for python_requires=">=3.7"
This commit is contained in:
parent
efe319ec95
commit
4ad03fe4ba
1 changed files with 0 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
|
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
|
@ -15,7 +14,6 @@ def package_files(directory):
|
||||||
|
|
||||||
# just the Python files for type hints?
|
# just the Python files for type hints?
|
||||||
pyonly = os.getenv("PYFILESONLY")
|
pyonly = os.getenv("PYFILESONLY")
|
||||||
minimum_python_version = (3, 7)
|
|
||||||
|
|
||||||
if pyonly:
|
if pyonly:
|
||||||
extra_files = []
|
extra_files = []
|
||||||
|
@ -35,12 +33,6 @@ install_requires = [
|
||||||
'darkdetect; sys.platform == "darwin"',
|
'darkdetect; sys.platform == "darwin"',
|
||||||
]
|
]
|
||||||
|
|
||||||
if sys.version_info < minimum_python_version:
|
|
||||||
raise RuntimeError(
|
|
||||||
"The minimum Python interpreter version required for Anki is '%s' "
|
|
||||||
"and version '%s' was found!" % (minimum_python_version, sys.version_info)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="aqt",
|
name="aqt",
|
||||||
|
|
Loading…
Reference in a new issue