Here is my python
project structure
▶ tree -L 2
.
├── Dockerfile
├── README.md
├── my_app
│ ├── __init__.py
│ ├── main.py
│ ├── settings.py
│ ├── utils.py
│ └── views.py
And part of my setup.py
package_dir={'': 'my_app'},
packages=find_packages(where='my_app'),
include_package_data=True,
python_requires='>=3.9',
entry_points={
'console_scripts': [
'my-app=my_app.main:run',
],
pip3 install . --force-reinstall
runs OK and I am in a virtualenv.
However, when trying to run the program
Traceback (most recent call last):
File "/Users/myuser/myfolder/.venv/bin/my-app", line 5, in <module>
from my_app.main import run
ModuleNotFoundError: No module named 'my_app'
I also noticed that in ls .venv/lib/python3.9/site-packages/
there are no source files of my-app
, only my_app-0.0.1.dist-info
file
Why is that?