I have a repository with multiple namespace packages in this format:
package_dir/
- package_1
- setup.py
- package_2
- setup.py
and so on. I'd like to install all packages in the overall package_dir directory in editable mode using a wildcard. If I run:
pip install -e package_dir/package_*/
Only the first package that is "discovered" by pip is installed in editable mode. Is there a way to install all matching directories in editable mode using a wildcard?
I have a Makefile that is running the pip command, and packages are getting added to package_dir on a regular basis. I'd rather not have to add a new line to the Makefile every time a small script is added to the repository.
edit:
Makefile target:
$(VENV_DIR): $(RELEASE_ROOT)/dev_requirements.txt
rm -rf $@
$(PYTHON_BIN) -m venv $@
$(DEV_BIN)/pip3 install -U pip
$(DEV_BIN)/pip3 install -r $(RELEASE_ROOT)/dev_requirements.txt
$(DEV_BIN)/pip3 install -e $(RELEASE_ROOT)/package_dir/package_*/