Create editable package setup.py in the same root folder as __init__.py
问题 An existing project is setup in a way that the repository has an __init__.py in at the root folder. I would like to create a setup.py in the repository so this would be the resulting project structure: project-master/ ├── __init__.py ├── setup.py └── submodule1 ├── code.py └── __init__.py └── submodule2 ├── code.py └── __init__.py and you should be able to: git clone project.url cd project-master pip install -e . from project.submodule1 import ... I tried the hacky solution of temporarily