Here is my tree
(simplified):
└── internal_models
├── models
│ ├── __init__.py
│ └── api
│ ├── my_code.py
└── setup.py
And my setup.py
:
from setuptools import setup
setup(name='internal-models',
version='0.0.2',
description='models package',
packages=["models"],
zip_safe=False,
install_requires=[])
When I install with pip install .
or python setup.py build
, Setuptools installs internal-models
(which cannot be imported anyway because of an illegal character), instead of the package I want, models
. What am I doing wrong? Have read the setuptools Quickstart and various related questions but am still confused.