high-agent-21601
07/11/2023, 12:16 PM# BUILD
pex_binary(
name="bin",
dependencies=[":src",":gql_schema"],
script="gunicorn",
environment="linux_x86_64"
)
docker_image(
name="core",
dependencies=[":bin"],
repository="core",
registries=[
"@helu_private",
],
image_tags=["latest"]
)
# pants.toml
[environments-preview.names]
linux_x86_64 = "//:linux_x86_64"
# BUILD
docker_environment(
name="linux_x86_64",
platform="linux_x86_64",
image="python:3.10-slim",
)
Does anyone know what I might be doing wrong?wide-midnight-78598
07/11/2023, 2:48 PMpex_binary(
name="foo-pex",
entry_point="foo.main",
dependencies=[
":libfoo",
],
platforms=["linux-x86_64-cp-311-cp311", "macosx-13.3-arm64-cp-311-cp311",]
)
wide-midnight-78598
07/11/2023, 2:50 PMscie
for the Python interpreter part though. Shouldn't really be a difference with docker
You could also build the pex in docker directly, I believe. I've just not yet done it with Pantsbroad-processor-92400
07/11/2023, 8:55 PMplatforms
(or complete_platforms
for more precision) is a good approach, but environments should also work… what error are you encountering?enough-analyst-54434
07/11/2023, 9:31 PMwide-midnight-78598
07/11/2023, 9:37 PMpsycopg2-binary
?enough-analyst-54434
07/11/2023, 9:45 PMpsycopg2
and not psycopg2-binary
. That fully explains the unspecified error given the OP details fwict.high-agent-21601
07/12/2023, 7:14 AMhigh-agent-21601
07/12/2023, 7:21 AM--find-links
repo or a custom --index
.enough-analyst-54434
07/12/2023, 12:34 PMenough-analyst-54434
07/12/2023, 12:36 PMhigh-agent-21601
07/12/2023, 12:37 PMenough-analyst-54434
07/12/2023, 12:38 PMenough-analyst-54434
07/12/2023, 12:39 PMenough-analyst-54434
07/12/2023, 12:39 PMenough-analyst-54434
07/12/2023, 12:40 PMhigh-agent-21601
07/12/2023, 12:42 PMenough-analyst-54434
07/12/2023, 12:43 PMenough-analyst-54434
07/12/2023, 12:44 PMhigh-agent-21601
07/12/2023, 12:45 PMenough-analyst-54434
07/12/2023, 12:52 PMenough-analyst-54434
07/12/2023, 12:54 PMenough-analyst-54434
07/12/2023, 12:55 PMhigh-agent-21601
07/12/2023, 12:57 PMwide-midnight-78598
07/12/2023, 1:19 PM[2021] The use of the -binary packages in production is discouraged because in the past they proved unreliable in multithread environments. This might have been fixed in more recent versions but I have never managed to reproduce the failure.As far as I can tell "in the past" references pre-2019ish. In the absence of any other information, I'm sure it's a safer bet to follow their suggestion and to build from source, but I'm a happy
-binary
user 🤷