O'Reilly logo
  • Chris Kang thinks this is interesting:

 $ ​​cd​​ ​​/path/to/code/appendices/packaging​​ $ ​​pip​​ ​​install​​ ​​./some_module_proj

From

Cover of Python Testing with pytest

Note

Run "pip" from the parent directory where your module is located: "./some_module_proj" is the directory where your code resides. This installation makes your module available through python pat.