mirror of https://github.com/streamlink/streamlink
build: move imports in setup.py
Ensure that the error message can be shown on unsupported Python versions trying to execute setup.py
This commit is contained in:
parent
1c90d7e8b8
commit
d87b7dc9dd
17
setup.py
17
setup.py
|
@ -3,9 +3,6 @@ from os import path
|
|||
from sys import argv, exit, version_info
|
||||
from textwrap import dedent
|
||||
|
||||
from setuptools import setup
|
||||
from versioningit import get_cmdclasses
|
||||
|
||||
|
||||
def format_msg(text, *args, **kwargs):
|
||||
return dedent(text).strip(" \n").format(*args, **kwargs)
|
||||
|
@ -75,8 +72,12 @@ data_files = [
|
|||
]
|
||||
|
||||
|
||||
setup(
|
||||
cmdclass=get_cmdclasses(),
|
||||
entry_points=entry_points,
|
||||
data_files=data_files,
|
||||
)
|
||||
if __name__ == "__main__":
|
||||
from setuptools import setup
|
||||
from versioningit import get_cmdclasses
|
||||
|
||||
setup(
|
||||
cmdclass=get_cmdclasses(),
|
||||
entry_points=entry_points,
|
||||
data_files=data_files,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue