@@ -68,10 +68,10 @@ RUN mkdir -p "${SOURCES_ROOT}/cudaq/apt" \
6868 "${SOURCES_ROOT}/cudaqx/apt" \
6969 "${SOURCES_ROOT}/cudaqx/pip" \
7070 "${SOURCES_ROOT}/tpls" \
71- "${SOURCES_ROOT}/scripts" \
71+ "${SOURCES_ROOT}/. scripts" \
7272 "${SOURCES_ROOT}/macos/pip"
7373
74- ENV SCRIPTS_DIR=${SOURCES_ROOT}/scripts
74+ ENV SCRIPTS_DIR=${SOURCES_ROOT}/. scripts
7575
7676# Copy .gitmodules, tpls lock file, clone script, package lists, and pip sdist fetcher
7777COPY .gitmodules "${SCRIPTS_DIR}" /.gitmodules
@@ -85,19 +85,19 @@ COPY NOTICE LICENSE "${SOURCES_ROOT}/"
8585
8686# Fetch apt source, pip sdists, and clone tpls in parallel (prefix lines so logs stay readable)
8787RUN apt-get update && set -o pipefail && \
88- ( set -o pipefail; cd "${SOURCES_ROOT}/apt" && \
88+ ( set -o pipefail; cd "${SOURCES_ROOT}/cudaq/ apt" && \
8989 chmod 777 . && \
90- : > "${SOURCES_ROOT}/apt/apt_omitted_packages.txt" && \
90+ : > "${SOURCES_ROOT}/cudaq/ apt/apt_omitted_packages.txt" && \
9191 for list in "${SCRIPTS_DIR}" /apt_packages_cudaq.txt; do \
9292 [ -f "$list" ] && while IFS= read -r pkg || [ -n "$pkg" ]; do \
9393 [ -z "$pkg" ] && continue; \
9494 apt-get source -y "$pkg" || echo "$pkg" >> "${SOURCES_ROOT}/cudaq/apt/apt_omitted_packages.txt" ; \
9595 done < "$list" ; \
9696 done; \
9797 ) 2>&1 | sed 's/^/[cudaq-apt] /' & \
98- ( set -o pipefail; cd "${SOURCES_ROOT}/apt" && \
98+ ( set -o pipefail; cd "${SOURCES_ROOT}/cudaqx/ apt" && \
9999 chmod 777 . && \
100- : > "${SOURCES_ROOT}/apt/apt_omitted_packages.txt" && \
100+ : > "${SOURCES_ROOT}/cudaqx/ apt/apt_omitted_packages.txt" && \
101101 for list in "${SCRIPTS_DIR}" /apt_packages_cudaqx.txt; do \
102102 [ -f "$list" ] && while IFS= read -r pkg || [ -n "$pkg" ]; do \
103103 [ -z "$pkg" ] && continue; \
@@ -151,11 +151,11 @@ RUN apt-get update && set -o pipefail && \
151151 bash "${SCRIPTS_DIR}" /clone_tpls_from_lock.sh ) 2>&1 | sed 's/^/[tpls] /' & \
152152 wait
153153
154- RUN echo -e "apt_omitted_packages.txt :\n $(cat ${SOURCES_ROOT}/cudaq/apt/apt_omitted_packages.txt)"
155- RUN echo -e "apt_omitted_packages.txt :\n $(cat ${SOURCES_ROOT}/cudaqx/apt/apt_omitted_packages.txt)"
156- RUN echo -e "pip_omitted_packages.txt :\n $(cat ${SOURCES_ROOT}/cudaq/pip/pip_omitted_packages.txt)"
157- RUN echo -e "pip_omitted_packages.txt :\n $(cat ${SOURCES_ROOT}/cudaqx/pip/pip_omitted_packages.txt)"
158- RUN echo -e "macos_pip_omitted_packages.txt :\n $(cat ${SOURCES_ROOT}/macos/pip/macos_pip_omitted_packages.txt)"
154+ RUN echo -e "CUDAQ apt omitted packages :\n $(cat ${SOURCES_ROOT}/cudaq/apt/apt_omitted_packages.txt)"
155+ RUN echo -e "CUDAQX apt omitted packages :\n $(cat ${SOURCES_ROOT}/cudaqx/apt/apt_omitted_packages.txt)"
156+ RUN echo -e "CUDAQ pip omitted packages :\n $(cat ${SOURCES_ROOT}/cudaq/pip/pip_omitted_packages.txt)"
157+ RUN echo -e "CUDAQX pip omitted packages :\n $(cat ${SOURCES_ROOT}/cudaqx/pip/pip_omitted_packages.txt)"
158+ RUN echo -e "MACOS pip omitted packages :\n $(cat ${SOURCES_ROOT}/macos/pip/macos_pip_omitted_packages.txt)"
159159
160160# For omitted apt packages (no source available), extract license/copyright/EULA from the .deb
161161RUN echo "Retrieving EULA/copyright for omitted apt packages..." && \
@@ -171,7 +171,7 @@ RUN echo "Retrieving EULA/copyright for omitted apt packages..." && \
171171 find "/tmp/deb_extract/${pkg}_pkg" \( -iname "*license*" -o -iname "*eula*" -o -iname "*copyright*" \) -exec cp -a {} "$dest/" \; 2>/dev/null || true; \
172172 rm -rf "/tmp/deb_extract/${pkg}_pkg" /tmp/deb_extract/*.deb; \
173173 fi; \
174- done < "${SOURCES_ROOT}/apt/apt_omitted_packages.txt" ; \
174+ done < <(for f in "${SOURCES_ROOT}/cudaq/ apt/apt_omitted_packages.txt" "${SOURCES_ROOT}/cudaqx/apt/apt_omitted_packages.txt" ; do [ -f "$f" ] && cat "$f" ; done) ; \
175175 rm -rf /tmp/deb_extract
176176
177177# For omitted pip packages (no sdist), get EULA/license from the wheel: fetch wheel from PyPI, extract, copy license/EULA/copyright files
@@ -197,7 +197,7 @@ RUN echo "Retrieving EULA/license for omitted pip packages..." && \
197197 fi; \
198198 rm -f /tmp/pip_wheel.whl; \
199199 fi; \
200- done < "${SOURCES_ROOT}/pip/pip_omitted_packages.txt" ; \
200+ done < <(for f in "${SOURCES_ROOT}/cudaq/ pip/pip_omitted_packages.txt" "${SOURCES_ROOT}/cudaqx/pip/pip_omitted_packages.txt" "${SOURCES_ROOT}/macos/pip/macos_pip_omitted_packages.txt" ; do [ -f "$f" ] && cat "$f" ; done) ; \
201201 rm -rf /tmp/wheel_extract
202202
203203# Summary
0 commit comments