high-yak-85899
05/03/2022, 5:22 AMexport to reduce our bootstrap times. This bootstrapping does something like pip install -U -e . -r requirements.txt -c constraints.txt. Even with a warm pip cache, this takes usually around 2 minutes or so while ./pants export is only like 15 seconds. The missing details are that the venv written by export sensibly doesn't have the -e . install step. Anyone tried to do something like this before?high-yak-85899
05/03/2022, 5:39 AM./pants export ::
2. source <path to venv>/bin/activate
3. python -m ensurepip --upgrade
4. pip3 install -U -e . --no-depshigh-yak-85899
05/03/2022, 5:44 AM./pants export breaks for the VCS entry in my requirements.txt file.rapid-exabyte-76685
05/03/2022, 6:28 AMhundreds-father-404
05/03/2022, 1:17 PM./pants export now includes pip in the venv as of 2.11.
(Although you may hit a bug when you're running with how interpreter constraints are chosen. Some people got it, some did not reproduce. The fix has been cherry picked and we will probably do a release this week)high-yak-85899
05/03/2022, 3:45 PMrequirements.txt for right now.high-yak-85899
05/03/2022, 4:15 PMrtl_tools, setup.py says the package name is rtl_tools, but something is wanting to interpret it as rtl-tools even though we do imports like from rtl_tools.some.internal.package import modulehigh-yak-85899
05/03/2022, 5:25 PM2.11.0 doesn't seem to help either. I've tried every combination of how rtl_tools and rtl-tools are referenced, but nothing seems to help.high-yak-85899
05/03/2022, 8:42 PMmonorepo @ <vcs url> and yet ./pants test is saying it can't find a distribution.high-yak-85899
05/04/2022, 12:09 AMrtl_tools case working by making sure it was included in the lockfile. I previously had to exclude it from the pip-tools generated file since it didn't make pants happy. Now that pants can handle them, including it fixed that problem (and similarly just using the pants-native lockfile generation is another valid way to fix it I think).