Installing plpipes#
The Python module plpipes can be installed in two ways:
Installing a packed version#
This is the recommended method for installing the module if you simply want to use it without contributing to its development.
You can install plpipes directly from the Python Package Index (PyPI) using pip:
This will ensure you have the latest stable version.
Installing from git#
-
Clone the repository outside of your project directory and switch to the
developbranch: -
Add the
srcsubdirectory to the Python search path: -
Check that it works:
Alternatively, you can modify your project's main script to append the src directory to the module search path so that you don't need to set PYTHONPATH manually each time you start a new session.
For example:
from pathlib import Path
import sys
sys.path.append(str(Path.cwd().parent.parent.parent / "PL-TEC-PLPipes/src"))
from plpipes.runner import main
main()
Or you can also set PYTHONPATH from your shell startup script (~/.profile) or in the Windows registry.
Packing plpipes#
If you would like to create a wheel file for plpipes, you can do so using flit, which can be installed with pip:
To generate a Python wheel file for plpipes, run the following command from inside the plpipes root directory:
The generated wheel file will be placed in the dist directory. This file is a standard (pure) Python package that can be installed on any operating system as demonstrated above.