Re-apply fix for frozen builds
This commit is contained in:
parent
7e20a14a2e
commit
9fc697d798
|
@ -23,6 +23,16 @@ from .util import (
|
||||||
verlib,
|
verlib,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if getattr(sys, 'frozen', None):
|
||||||
|
# "Frozen" python interpreters (i.e., standalone executables
|
||||||
|
# generated by PyInstaller and other, similar utilities) run
|
||||||
|
# independently of a traditional setuptools-based packaging
|
||||||
|
# environment, and so pkg_resources.get_distribution() cannot be
|
||||||
|
# used in such cases to gather a list of requirements at runtime
|
||||||
|
# (and because a frozen application is one that has already been
|
||||||
|
# "installed", an empty list suffices here).
|
||||||
|
_INSTALL_REQUIRES = []
|
||||||
|
else:
|
||||||
_INSTALL_REQUIRES = list(
|
_INSTALL_REQUIRES = list(
|
||||||
str(req)
|
str(req)
|
||||||
for req
|
for req
|
||||||
|
|
Loading…
Reference in New Issue