standard lib modules no longer required in freeze_includes() and updated docs
--HG-- branch : cx_freeze-support
This commit is contained in:
parent
5873ca5146
commit
ccd67733fb
|
@ -99,16 +99,6 @@ def freeze_includes():
|
|||
"""
|
||||
result = list(_iter_all_modules(py))
|
||||
result += list(_iter_all_modules(_pytest))
|
||||
|
||||
# builtin files imported by pytest using py.std implicit mechanism;
|
||||
# should be removed if https://bitbucket.org/hpk42/pytest/pull-request/185
|
||||
# gets merged
|
||||
result += [
|
||||
'argparse',
|
||||
'shlex',
|
||||
'warnings',
|
||||
'types',
|
||||
]
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
@ -684,7 +684,7 @@ invaluable to obtain more information about a hard to reproduce bug.
|
|||
|
||||
Unfortunately ``cx_freeze`` can't discover them
|
||||
automatically because of ``pytest``'s use of dynamic module loading, so you
|
||||
must declare them explicitly by using ``pytest.cx_freeze_support.includes()``::
|
||||
must declare them explicitly by using ``pytest.freeze_includes()``::
|
||||
|
||||
# contents of setup.py
|
||||
from cx_Freeze import setup, Executable
|
||||
|
@ -695,7 +695,7 @@ must declare them explicitly by using ``pytest.cx_freeze_support.includes()``::
|
|||
executables=[Executable("app_main.py")],
|
||||
options={"build_exe":
|
||||
{
|
||||
'includes': pytest.cx_freeze_support.includes()}
|
||||
'includes': pytest.freeze_includes()}
|
||||
},
|
||||
# ... other options
|
||||
)
|
||||
|
@ -718,5 +718,4 @@ over to ``pytest`` instead. For example::
|
|||
This makes it convenient to execute your tests from within your frozen
|
||||
application, using standard ``py.test`` command-line options::
|
||||
|
||||
$ ./app_main --pytest --verbose --tb=long --junit-xml=results.xml test-suite/ /bin/sh: 1: ./app_main: not found
|
||||
/bin/sh: 1: ./app_main: not found
|
||||
$ ./app_main --pytest --verbose --tb=long --junit-xml=results.xml test-suite/
|
||||
|
|
Loading…
Reference in New Issue