I have the following project:
apack/
  apack/
    __init__.py
    apack.py
    aux.py
  setup.py
apack.py:
def foo(x):
    return x
aux.py:
from apack import foo
def bar():
    return foo() + 1
setup.py:
from setuptools import setup, find_packages
setup(
    name='apack',
    packages=find_packages()
)
I install the package with pip install .. However, the result is a an empty package:
>>> import apack
>>> apack.foo
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'apack' has no attribute 'foo'
What I would like to have is:
>>> import apack
>>> apack.foo()
>>> apack.bar()
There is a number of similar questions here (e.g., 1, 2). However, none of them is minimal enough for me to understand why my example does not work.
 
    