mirror of https://github.com/scrapy/scrapy.git
fix: move import to inside function
This commit is contained in:
parent
6e1af20ac4
commit
a93a63c208
3
setup.py
3
setup.py
|
|
@ -1,6 +1,5 @@
|
|||
from pathlib import Path
|
||||
|
||||
from packaging.version import parse as parse_version
|
||||
from setuptools import __version__ as setuptools_version
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
|
|
@ -15,6 +14,8 @@ def has_environment_marker_platform_impl_support():
|
|||
it is 18.5, see:
|
||||
https://setuptools.readthedocs.io/en/latest/history.html#id235
|
||||
"""
|
||||
from packaging.version import parse as parse_version
|
||||
|
||||
return parse_version(setuptools_version) >= parse_version("18.5")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -14,4 +14,3 @@ brotli # optional for HTTP compress downloader middleware tests
|
|||
zstandard; implementation_name != 'pypy' # optional for HTTP compress downloader middleware tests
|
||||
ipython
|
||||
pywin32; sys_platform == "win32"
|
||||
packaging
|
||||
Loading…
Reference in New Issue