Tip
- Standard Installation: In this example folder, use
pip install .
to install all Python dependencies that are pip-installable, along with the local package itself. - Comprehensive Installation with
unidep
: To install all dependencies, including those that are not Python-specific, useunidep install .
. This command performs the following actions in sequence:conda install [dependencies from requirements.yaml]
– Installs all Conda installable dependencies.pip install [dependencies from requirements.yaml]
– Installs remaining pip-only dependencies.pip install .
– Installs the local package.
For projects using setuptools
with only a pyproject.toml
file, configure unidep
in pyproject.toml
alongside a requirements.yaml
file.
Example Configuration for projects using pyproject.toml
:
Add this to pyproject.toml
:
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "unidep"] # add "unidep" here
[project]
dynamic = ["dependencies"] # add "dependencies" here
Then, of course, add a requirements.yaml
and you are good to go! 🎉
Note
See the pyproject.toml
for a working example.