I have a package structure that looks like this:
├─ src
│ └─ packagename
│ ├─ __init__.py
│ └─ ...
├─ tests
│ └─ ...
├─ CMakeLists.txt
└─ setup.py
My setup.py script looks like this:
setup(
...
packages=find_packages('src'),
package_dir={'': 'src'},
...
)
Running pip install . and pip install -e . fails with an error saying that directory 'package_name' cannot be found. Running the same commands with setuptools setup works fine.