lively-exabyte-12840
03/02/2022, 9:26 PMhundreds-father-404
03/02/2022, 9:29 PM[pex]
that causes you to never use wheels, for both user and tool lockfiles? Only user code? For user code, only when doing ./pants package
or also when installing for ./pants test
etc?hundreds-father-404
03/02/2022, 9:30 PM--wheel, --binary, --no-wheel, --no-use-wheel, --no-binary, --no-use-binary
Whether to allow binary distributions. (default: True)
--build, --no-build Whether to allow building of distributions from source. (default: True)
--prefer-wheel, --prefer-binary, --no-prefer-wheel, --no-prefer-binary
Whether to prefer older binary distributions to newer source distributions
(prefer not building wheels). (default: False)
lively-exabyte-12840
03/02/2022, 9:37 PMlively-exabyte-12840
03/02/2022, 9:37 PMlively-exabyte-12840
03/02/2022, 9:37 PMhappy-kitchen-89482
03/02/2022, 9:45 PMhappy-kitchen-89482
03/02/2022, 9:46 PM--no-binary
happy-kitchen-89482
03/02/2022, 9:47 PMhappy-kitchen-89482
03/02/2022, 9:47 PMhappy-kitchen-89482
03/02/2022, 9:49 PMhappy-kitchen-89482
03/02/2022, 9:50 PM--no-binary
there tells pip to not use a wheel for dbt-postgres
, thus forcing it to run its setup.py, which in turn processes that env var and thus causes a non-binary dep on psycopg2?happy-kitchen-89482
03/02/2022, 9:51 PMDBT_PSYCOPG2_NAME=psycopg2 pip install dbt-postgres
happy-kitchen-89482
03/02/2022, 9:52 PM--no-binary
happy-kitchen-89482
03/02/2022, 9:55 PMhappy-kitchen-89482
03/02/2022, 9:56 PMRequires-Dist: psycopg2-binary (~=2.8)
happy-kitchen-89482
03/02/2022, 10:01 PM--no-binary
is presumably required (I was hoping we could work around this with just env var plumbing...)happy-kitchen-89482
03/02/2022, 10:26 PMlively-exabyte-12840
03/03/2022, 12:43 AMhundreds-father-404
03/03/2022, 1:45 AMlively-exabyte-12840
03/03/2022, 2:05 PMlively-exabyte-12840
03/03/2022, 2:05 PMhappy-kitchen-89482
03/03/2022, 2:49 PMhappy-kitchen-89482
03/03/2022, 2:50 PM--no-binary
we'd have to handle, which should be straightforwardlively-exabyte-12840
03/03/2022, 4:03 PMhappy-kitchen-89482
03/03/2022, 4:05 PMlively-exabyte-12840
03/03/2022, 4:09 PMlively-exabyte-12840
03/03/2022, 4:53 PMlively-exabyte-12840
03/03/2022, 5:04 PMhappy-kitchen-89482
03/03/2022, 6:26 PMenough-analyst-54434
03/04/2022, 1:27 AMSo that part is taken care of, it's just the plumbing ofI responded on the ticket, but I don't think so. That Pex option is global. All requirements will be forced to be built from sdists and actually fail if an sdist is not provided. Pip has a more targeted form ofwe'd have to handle, which should be straightforward--no-binary
--no-binary
that Pex supports via its support for all Pip options that can legally be passed via a requirements file. Pants gets in the way with that though today; so there will be more serious Pants surgery to support this.enough-analyst-54434
03/04/2022, 1:29 AMhappy-kitchen-89482
04/05/2022, 7:17 PM