Skip to content
Myr

added init files to setuptools.rst example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Without the __init__.py files, new programmers will waste time with a broken example.

authored by Jay Martin · committed by Jay Martin · parent 308cc08 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/setuptools.rst+2 added
106 unmodified lines
107contained in a Python package the changes necessary are minimal. Let's108assume your directory structure changed to this::109110 yourpackage/111 __init__.py112 main.py113 utils.py114 scripts/115 __init__.py116 yourscript.py117118In this case instead of using ``py_modules`` in your ``setup.py`` file you119can use ``packages`` and the automatic package finding support of
20 unmodified lines