Skip to content

Commit

Permalink
Merge pull request #7 from swolebro/master
Browse files Browse the repository at this point in the history
Adding zip_safe=False to setup.py's.
  • Loading branch information
Jon Wayne Parrott authored Nov 1, 2017
2 parents 7ea6f53 + c3eb820 commit d32f740
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 17 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ markdown-friendly table.
# Current status

To see the status since the last time the scenarios were run open [table.md](table.md).

Please note:
* Mixing package types within a single namespace is not supported. While it may work in some cases, it may also break depending on the software versions used, the install commands issued, or the order of commands. Don't mix types.
* The `pkg_resources` method of namspacing is [no longer recommended](https://packaging.python.org/guides/packaging-namespace-packages/#pkg-resources-style-namespace-packages) and there is [the desire to deprecate it](https://github.com/pypa/python-packaging-user-guide/issues/265#issuecomment-290812581). It should only be used in legacy namespaces that already rely on it.
* [PEP 420](https://www.python.org/dev/peps/pep-0420/) was accepted as part of Python 3.3. For wider compatibility (going back to Python 2.3), use the `pkgutil` method.
* Zipped eggs don't play nicely with namespace packaging, and may be implicitly installed by commands like `python setup.py install`. To prevent this, it is recommended that you set [`zip_safe=False`](http://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag) in `setup.py`, as we do here.
3 changes: 2 additions & 1 deletion native/pkg_a/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@

license='Apache Software License',

packages=['example_pkg.a']
packages=['example_pkg.a'],
zip_safe=False,
)
1 change: 1 addition & 0 deletions native/pkg_b/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
license='Apache Software License',

packages=['example_pkg.b'],
zip_safe=False,
)
3 changes: 2 additions & 1 deletion pkg_resources/pkg_a/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
license='Apache Software License',

packages=find_packages(),
namespace_packages=['example_pkg']
namespace_packages=['example_pkg'],
zip_safe=False,
)
3 changes: 2 additions & 1 deletion pkg_resources/pkg_b/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
license='Apache Software License',

packages=find_packages(),
namespace_packages=['example_pkg']
namespace_packages=['example_pkg'],
zip_safe=False,
)
1 change: 1 addition & 0 deletions pkgutil/pkg_a/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
license='Apache Software License',

packages=find_packages(),
zip_safe=False,
)
1 change: 1 addition & 0 deletions pkgutil/pkg_b/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
license='Apache Software License',

packages=find_packages(),
zip_safe=False,
)
2 changes: 1 addition & 1 deletion report_to_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
session['args']['interpreter'],
' '.join(session['args']['command_a']),
' '.join(session['args']['command_b']),
u'✅' if session['result'] else u'❌'
u'✅' if session['result_code'] else u'❌'
))
33 changes: 20 additions & 13 deletions table.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
| Tool | Version(s) |
| --- | --- |
| python | 2.7.12, 3.5.2 |
| setuptools | 36.6.0 |
| pip | 9.0.1 |
| wheel | 0.30.0 |

| Type | Interpreter | Package A command | Package B command | Status |
| --- | --- | --- | --- | --- |
| cross_pep420_pkgutil | python2 | pip install . | pip install . ||
Expand All @@ -24,10 +31,10 @@
| cross_pep420_pkgutil | python3 | pip install -e . | pip install -e . ||
| cross_pep420_pkgutil | python3 | pip install -e . | python setup.py install ||
| cross_pep420_pkgutil | python3 | pip install -e . | python setup.py develop ||
| cross_pep420_pkgutil | python3 | python setup.py install | pip install . | |
| cross_pep420_pkgutil | python3 | python setup.py install | pip install -e . | |
| cross_pep420_pkgutil | python3 | python setup.py install | python setup.py install | |
| cross_pep420_pkgutil | python3 | python setup.py install | python setup.py develop | |
| cross_pep420_pkgutil | python3 | python setup.py install | pip install . | |
| cross_pep420_pkgutil | python3 | python setup.py install | pip install -e . | |
| cross_pep420_pkgutil | python3 | python setup.py install | python setup.py install | |
| cross_pep420_pkgutil | python3 | python setup.py install | python setup.py develop | |
| cross_pep420_pkgutil | python3 | python setup.py develop | pip install . ||
| cross_pep420_pkgutil | python3 | python setup.py develop | pip install -e . ||
| cross_pep420_pkgutil | python3 | python setup.py develop | python setup.py install ||
Expand All @@ -40,7 +47,7 @@
| cross_pkg_resources_pkgutil | python2 | pip install -e . | pip install -e . ||
| cross_pkg_resources_pkgutil | python2 | pip install -e . | python setup.py install ||
| cross_pkg_resources_pkgutil | python2 | pip install -e . | python setup.py develop ||
| cross_pkg_resources_pkgutil | python2 | python setup.py install | pip install . | |
| cross_pkg_resources_pkgutil | python2 | python setup.py install | pip install . | |
| cross_pkg_resources_pkgutil | python2 | python setup.py install | pip install -e . ||
| cross_pkg_resources_pkgutil | python2 | python setup.py install | python setup.py install ||
| cross_pkg_resources_pkgutil | python2 | python setup.py install | python setup.py develop ||
Expand All @@ -56,7 +63,7 @@
| cross_pkg_resources_pkgutil | python3 | pip install -e . | pip install -e . ||
| cross_pkg_resources_pkgutil | python3 | pip install -e . | python setup.py install ||
| cross_pkg_resources_pkgutil | python3 | pip install -e . | python setup.py develop ||
| cross_pkg_resources_pkgutil | python3 | python setup.py install | pip install . | |
| cross_pkg_resources_pkgutil | python3 | python setup.py install | pip install . | |
| cross_pkg_resources_pkgutil | python3 | python setup.py install | pip install -e . ||
| cross_pkg_resources_pkgutil | python3 | python setup.py install | python setup.py install ||
| cross_pkg_resources_pkgutil | python3 | python setup.py install | python setup.py develop ||
Expand All @@ -82,19 +89,19 @@
| pep420 | python2 | python setup.py develop | python setup.py develop ||
| pep420 | python3 | pip install . | pip install . ||
| pep420 | python3 | pip install . | pip install -e . ||
| pep420 | python3 | pip install . | python setup.py install | |
| pep420 | python3 | pip install . | python setup.py install | |
| pep420 | python3 | pip install . | python setup.py develop ||
| pep420 | python3 | pip install -e . | pip install . ||
| pep420 | python3 | pip install -e . | pip install -e . ||
| pep420 | python3 | pip install -e . | python setup.py install | |
| pep420 | python3 | pip install -e . | python setup.py install | |
| pep420 | python3 | pip install -e . | python setup.py develop ||
| pep420 | python3 | python setup.py install | pip install . | |
| pep420 | python3 | python setup.py install | pip install -e . | |
| pep420 | python3 | python setup.py install | python setup.py install | |
| pep420 | python3 | python setup.py install | python setup.py develop | |
| pep420 | python3 | python setup.py install | pip install . | |
| pep420 | python3 | python setup.py install | pip install -e . | |
| pep420 | python3 | python setup.py install | python setup.py install | |
| pep420 | python3 | python setup.py install | python setup.py develop | |
| pep420 | python3 | python setup.py develop | pip install . ||
| pep420 | python3 | python setup.py develop | pip install -e . ||
| pep420 | python3 | python setup.py develop | python setup.py install | |
| pep420 | python3 | python setup.py develop | python setup.py install | |
| pep420 | python3 | python setup.py develop | python setup.py develop ||
| pkg_resources | python2 | pip install . | pip install . ||
| pkg_resources | python2 | pip install . | pip install -e . ||
Expand Down

0 comments on commit d32f740

Please sign in to comment.