sparse-pharmacist-76603
06/10/2022, 11:37 AM./pants run py/apps/cronos/docker:docker_src
14:27:39.91 [ERROR] 1 Exception encountered:
Exception: Can only merge Directories with no duplicates, but found 2 duplicate entries in :
`<http://MANIFEST.in|MANIFEST.in>`: 1.) file digest=64958bd91c39a06f78542a71383436bbf0c798138e4fe46780c8d9c08aa91278 size=179:
include <http://README.org|README.org> LICENSE VERSION
include pybind/cnufft/cnufft.c
include pybind/cnufft/cnufft.h
include pybind/cnufft/libcnufft.so
include pybind/cnufft/libfnufft.so
prune *.pyc
`<http://MANIFEST.in|MANIFEST.in>`: 2.) file digest=892591bf1e4c7e1337cfd470096a467805fa2cb6f46b792fe6e3a6a8b0a72e0a size=366:
include README.rst
include setup.py
include nufft/__init__.py
include nufft/nufft.py
include nufft/nufft.pyf
include src/nufft/dfftpack.f
include src/nufft/dirft1d.f
include src/nufft/dirft2d.f
include src/nufft/dirft3d.f
include src/nufft/next235.f
include src/nufft/nufft1df90.f
include src/nufft/nufft2df90.f
include src/nufft/nufft3df90.f
include pyproject.toml
happy-kitchen-89482
06/11/2022, 5:34 AMsparse-pharmacist-76603
06/11/2022, 6:35 AMpoetry_requirements(name="pybind")
python_sources(
name="pybind0",
)
resource(name="pyproject", source="pyproject.toml")
resources(
name="pybind_files",
sources=[
"README.rst",
"VERSION",
"<http://MANIFEST.in|MANIFEST.in>",
"pybind/cnufft/*",
"pybind/cnufft/src/*",
],
)
python_distribution(
name="pybind_dist",
dependencies=[
":pyproject",
":pybind_files",
"py/libs/pybind/setup.py:pybind0",
],
provides=python_artifact(
name="pybind",
version="0.2.1",
),
wheel_config_settings={"--global-option": ["--python-tag", "py37.py38.py39"]},
generate_setup=False,
)
second subproj build:
poetry_requirements(name="nufft")
python_sources(name="nufft0")
resource(name="pyproject", source="pyproject.toml")
resources(
name="nufft_files",
sources=[
"README.rst",
"LICENSE",
"<http://MANIFEST.in|MANIFEST.in>",
"src/nufft/*",
"nufft/nufft.pyf",
],
)
python_distribution(
name="nufft_dist",
dependencies=[
":pyproject",
":nufft_files",
"py/libs/nufft/setup.py:nufft0",
],
provides=python_artifact(
name="nufft",
version="0.0.3",
),
wheel_config_settings={"--global-option": ["--python-tag", "py37.py38.py39"]},
generate_setup=False,
)
docker build:
docker_image(
name="docker_src",
source="Dockerfile.main",
dependencies=[
"py/libs/nufft:nufft_dist",
"py/libs/pybind:pybind_dist",
":cfiles",
],
)
files(
name="cfiles",
sources=[
"../scripts/run.sh",
"./.tmux.conf",
]
)
happy-kitchen-89482
06/11/2022, 12:07 PMhappy-kitchen-89482
06/11/2022, 12:09 PMhappy-kitchen-89482
06/11/2022, 12:10 PM./pants package py/apps/cronos/docker:docker_src
too, or just run
?curved-television-6568
06/11/2022, 1:01 PMsparse-pharmacist-76603
06/11/2022, 1:39 PM./pants package ...
alsocurved-television-6568
06/12/2022, 2:51 PMcurved-television-6568
06/12/2022, 7:16 PMcurved-television-6568
06/12/2022, 7:18 PMCOPY foo /
) to make the docker build fail, Pants will print a message describing what files you have in the build context.
You may need to temporarily remove the dependency on one of the dists in order to avoid the merge conflict to get that far, though.curved-television-6568
06/12/2022, 7:19 PM$ ./pants package src/docker:test
21:14:45.55 [INFO] Completed: Building docker image test:latest
21:14:45.56 [WARN] Docker build failed for `docker_image` src/docker:test. The src/docker/Dockerfile.test have `COPY` instructions where the source files may not have been found in the Docker build context.
However there are possible matches. Please review the following list of suggested renames:
* foo => proj_b-2.0.0-py3-none-any.whl
There are additional files in the Docker build context that were not referenced by any `COPY` instruction (this is not an error):
* proj_a-1.0.0-py3-none-any.whl
* proj_a-1.0.0.tar.gz
* proj_b-2.0.0.tar.gz
21:14:45.56 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building docker image test:latest' failed with exit code 1.
stdout:
stderr:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Use `--no-process-cleanup` to preserve process chroots for inspection.
curved-television-6568
06/12/2022, 7:24 PMI do not quite reproduce this issue, at least on the latest dev version of Pants (2.13.0.dev5)Also tried on 2.10.0 real quick, I get the same behaviour there as well (i.e. I do still not repro the issue)
curved-television-6568
06/12/2022, 7:27 PMcurved-television-6568
06/12/2022, 7:29 PMsparse-pharmacist-76603
06/13/2022, 10:00 AMcurved-television-6568
06/13/2022, 10:50 AMcurved-television-6568
06/13/2022, 8:44 PMsparse-pharmacist-76603
06/14/2022, 3:23 AMFROM 3.8-bullseye
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
unzip \
gfortran-10 \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
sparse-pharmacist-76603
06/14/2022, 6:19 AMsparse-pharmacist-76603
06/14/2022, 6:20 AMcurved-television-6568
06/14/2022, 6:21 AMcurved-television-6568
06/14/2022, 7:58 PMpex_binary
works. The repo provided by @sparse-pharmacist-76603 reproduces the issue, and also for ./pants package py/apps/pyapp:venv
.curved-television-6568
06/14/2022, 7:59 PMbitter-ability-32190
06/14/2022, 8:03 PMbitter-ability-32190
06/14/2022, 8:05 PMbitter-ability-32190
06/14/2022, 8:05 PM/py/libs/nufft/LICENSE
and /py/libs/pybind/LICENSE
you get LICENSE
, and if you ever depend on both in the sandbox 💥sparse-pharmacist-76603
06/16/2022, 3:09 AMcurved-television-6568
06/16/2022, 5:43 AMhappy-kitchen-89482
06/16/2022, 7:25 AMhappy-kitchen-89482
06/16/2022, 7:26 AMhappy-kitchen-89482
06/16/2022, 7:28 AM./pants repl
.happy-kitchen-89482
06/16/2022, 7:38 AMcurved-television-6568
06/16/2022, 7:40 AMhappy-kitchen-89482
06/16/2022, 7:40 AMhappy-kitchen-89482
06/16/2022, 9:49 AMhappy-kitchen-89482
06/16/2022, 9:54 AMhappy-kitchen-89482
06/16/2022, 9:54 AMcurved-television-6568
06/16/2022, 11:39 AMsparse-pharmacist-76603
06/16/2022, 8:01 PMhappy-kitchen-89482
06/16/2022, 9:47 PMhappy-kitchen-89482
06/16/2022, 9:58 PMhappy-kitchen-89482
06/16/2022, 9:59 PMhappy-kitchen-89482
06/16/2022, 9:59 PM"!!py/libs/nufft/MANIFEST.in:nufft_files",
"!!py/libs/nufft/README.rst:nufft_files",
"!!py/libs/nufft/pyproject.toml:pyproject",
"!!py/libs/nufft/setup.py:nufft0",
"!!py/libs/pybind/MANIFEST.in:pybind_files",
"!!py/libs/pybind/README.rst:pybind_files",
"!!py/libs/pybind/pyproject.toml:pyproject",
"!!py/libs/pybind/setup.py:pybind0",
happy-kitchen-89482
06/16/2022, 10:00 PMhappy-kitchen-89482
06/16/2022, 10:00 PMpex_binary(
name="venv",
dependencies=[
"py/libs/nufft:nufft_dist",
"py/libs/pybind:pybind_dist",
"!!py/libs/nufft/MANIFEST.in:nufft_files",
"!!py/libs/nufft/README.rst:nufft_files",
"!!py/libs/nufft/pyproject.toml:pyproject",
"!!py/libs/nufft/setup.py:nufft0",
"!!py/libs/pybind/MANIFEST.in:pybind_files",
"!!py/libs/pybind/README.rst:pybind_files",
"!!py/libs/pybind/pyproject.toml:pyproject",
"!!py/libs/pybind/setup.py:pybind0",
]
)
happy-kitchen-89482
06/16/2022, 10:01 PMbitter-ability-32190
06/16/2022, 10:02 PMhappy-kitchen-89482
06/16/2022, 11:08 PMhappy-kitchen-89482
06/16/2022, 11:09 PMbitter-ability-32190
06/16/2022, 11:59 PMhappy-kitchen-89482
06/18/2022, 6:20 PM