umd-lhcb / lhcb-ntuples-gen

ntuples generation with DaVinci and in-house offline components
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Explicit zfit dep #129

Closed yipengsun closed 5 months ago

yipengsun commented 5 months ago

List the pip side of the zfit dependency with their versions pinned.

TLDR; make install-dep-pip

A naive pip install -r may fail, because tensorflow 2.6.x requires numpy~=1.19, but nix provides 1.21. Also, pip install numpy won't normally work due to nix constraints.

We workaround this issue by:

  1. List all packages to be pip-installed explicitly, with their version pinned
  2. Use the --no-deps flag for pip install, so the numpy version check is skipped.

@manuelfs