ACP Conda Build & Distribution Flashcards
6 cards from real ACP practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 ACP Conda Build & Distribution flashcards as text
What file is required at the root of a conda package recipe to define its build metadata and dependencies?
Answer: meta.yaml
The meta.yaml file is the recipe descriptor that defines package name, version, source, build requirements, and runtime dependencies for conda-build.
Which conda-build command is used to build a package from a local recipe directory called `my-package`?
Answer: conda-build my-package
Running `conda-build my-package` processes the recipe in that directory and produces a .tar.bz2 or .conda artifact.
In a meta.yaml recipe, where do you specify packages that are needed ONLY during the build process (e.g., compilers)?
Answer: requirements: build
The `requirements: build` section lists cross-compilation tools and compilers that run on the build machine but are not needed in the final environment.
What does the `conda convert` command allow you to do with an existing conda package?
Answer: Repackage a built artifact for a different platform/OS
`conda convert` repackages a compiled conda artifact for alternative platforms (e.g., from linux-64 to osx-64) when no compiled C extensions are involved.
Which Anaconda-hosted service allows you to upload and share your built conda packages publicly or within a team?
Answer: Anaconda.org
Anaconda.org (formerly Binstar) is the cloud repository where users and organizations can upload, manage, and share conda packages and channels.
In meta.yaml, which top-level key defines the scripts (build.sh on Linux/macOS and bld.bat on Windows) used to compile and install the package?
Answer: build
The `build` section in meta.yaml controls the build scripts, number (build string), skip conditions, and entry points for the package.