I have some local packages hosted on my own machine, I would like to include a copy of them in distribution of other packages that depends on them. When installing a local package, pip freeze shows something like
public-package==3.0.1
local-package @ file:///home/user/local-package/dist/local-package-1.0.0.tar.gz
but if one try to install that package on other computer will get error from pip because local-package path does not exist. Can I extend setup.py commands to process that requirements.txt file, extract local packages path, copy local packages into deps folder of dist archive and rewrite requirements.txt like
public-package==3.0.1
local-package @ deps/local-package-1.0.0.tar.gz
and make pip treat deps/ as a relative path to the package archive itself?