With no command-line arguments, raco setup finds all of the
To restrict raco setup to a set of collections, provide the collection names as arguments. For example, raco setup scribblings/raco would only compile and render the documentation for raco, which is implemented in a "scribblings/raco" collection.
An optional "info.rkt" within the collection can indicate specifically how the collection’s files are to be compiled and other actions to take in setting up a collection, such as creating executables or building documentation. See Controlling raco setup with "info.rkt" Files for more information.
The raco setup command accepts the following command-line flags:
- Constraining to specified collections or PLaneT packages:
restrict setup to specified collections and PLaneT packages, even if none are specified. This mode is the default if any collection is specified as a command-line argument or through the -l, --pkgs, or -P flag.
-l ‹collection› ... —
constrain setup actions to the specified ‹collection›s (i.e., the same as providing ‹collections›s without a flag, but with no possibility that a ‹collection› is interpreted as a flag).
--pkgs ‹pkg› ... —
constrain setup actions to collections that are within (or partially within) the named ‹pkg›s.
-P ‹owner› ‹package-name› ‹maj› ‹min› —
constrain setup actions to the specified PLaneT package, in addition to any other specified PLaneT packages or collections.
build collections that implement documentation indexes (when documentation building is enabled), in addition to specified collections.
remove metadata cache information and documentation for non-existent collections or documentation to clean up after removal, even when setup actions are otherwise confined to specified collections. Although tidying is not confined to specified collections, it can be constrained with --avoid-main or --no-user.
- Constraining to specific tasks:
--clean or -c —
delete existing ".zo" files, thus ensuring a clean build from the source files. The exact set of deleted files can be controlled by "info.rkt"; see clean for more information. Unless --no-info-domain or -d is also specified, the "info.rkt" cache is cleared. Unless --no-docs or -D is also specified, the documentation-index database is reset.
--fast-clean or -c —
like --clean, but without forcing a bootstrap of raco setup from source (which means that --fast-clean cannot clean corruption that affects raco setup itself).
--no-zo or -n —
refrain from compiling source files to ".zo" files.
fix timestamps on ".zo" files on the assumption that they are already up-to-date (unless the PLT_COMPILED_FILE_CHECK environment variable is set to exists, in which case timestamps are ignored).
--no-launcher or -x —
refrain from creating executables or installing man pages (as specified in "info.rkt"; see Controlling raco setup with "info.rkt" Files).
--no-foreign-libs or -F —
refrain from installing foreign libraries (as specified in "info.rkt"; see Controlling raco setup with "info.rkt" Files).
disable actions other than installing foreign libraries; equivalent to -nxiIdD, except that --only-foreign-libs doesn’t reject (redundant) specification of those individual flags.
--no-install or -i —
refrain from running pre-install actions (as specified in "info.rkt" files; see Controlling raco setup with "info.rkt" Files).
--no-post-install or -I —
refrain from running post-install actions (as specified in "info.rkt" files; see Controlling raco setup with "info.rkt" Files).
--no-info-domain or -d —
refrain from building a cache of metadata information from "info.rkt" files. This cache is needed by other tools. For example, raco itself uses the cache to locate plug-in tools.
--no-docs or -D —
refrain from building documentation.
--doc-pdf ‹dir› —
in addition to building HTML documentation, render documentation to PDF and place files in ‹dir›.
--no-pkg-deps or -K —
refrain from checking whether dependencies among libraries are properly reflected by package-level dependency declarations, whether modules are declared by multiple packages, and whether package version dependencies are satisfied. See Package Dependency Checking for more information.
checks package dependencies (unless explicitly disabled) even when specific collections are provided to raco setup, and even for packages that have no dependency declarations. See Package Dependency Checking for more information.
attempt to correct dependency mismatches by adjusting package "info.rkt" files (which makes sense only for packages that are installed as links). See Package Dependency Checking for more information.
attempt to report dependencies that are declared but are unused. Beware that some package dependencies may be intentionally unused (e.g., declared to force installation of other packages as a convenience), and beware that package dependencies may be reported as unused only because compilation of relevant modules has been suppressed. See Package Dependency Checking for more information.
- Constraining user versus installation setup:
--no-user or -U —
refrain from any user-specific (as opposed to installation-specific) setup actions.
refrain from any setup actions for PLaneT actions; this flag is implied by --no-user.
refrain from any setup actions that affect the installation, as opposed to user-specific actions.
when building documentation, create a user-specific documentation entry point even if it has the same content as the main installation.
- Selecting parallelism and other build modes:
--jobs ‹n›, --workers ‹n›, or -j ‹n› —
use up to ‹n› parallel processes. By default, raco setup uses (processor-count) jobs, which typically uses all of the machine’s processing cores.
--verbose or -v —
more verbose output about raco setup actions.
--make-verbose or -m —
more verbose output about dependency checks.
--compiler-verbose or -r —
even more verbose output about dependency checks and compilation.
--mode ‹mode› —
use a ".zo" compiler other than the default compiler, and put the resulting ".zo" files in a subdirectory (of the usual place) named by ‹mode›. The compiler is obtained by using ‹mode› as a collection name, finding a "zo-compile.rkt" module in that collection, and extracting its zo-compile export. The zo-compile export should be a function like compile; see the "errortrace" collection for an example.
attempt to break as soon as any error is discovered.
--pause or -p —
pause for user input if any errors are reported (so that a user has time to inspect output that might otherwise disappear when the raco setup process ends).
- Unpacking ".plt" archives:
--boot ‹module-file› ‹build-dir› —
For use by directly running setup instead of through raco setup, loads ‹module-file› in the same way that raco setup normally loads itself, auto-detecting the need to start from sources and rebuild the compiled files— even for the compilation manager itself. The ‹build-dir› path is installed as the only path in current-compiled-file-roots, so all compiled files go there.
--chain ‹module-file› ‹build-dir› —
Like --boot, but adds ‹build-dir› to the start of current-compiled-file-roots instead of replacing the current value, which means that libraries already built in the normal location (including the compilation manager itself) will be used instead of rebuilt. This mode makes sense for cross-compilation.
When building racket, flags can be provided to raco setup as run by make install by setting the PLT_SETUP_OPTIONS environment variable. For example, the following command line uses a single process to build collections during an install:
env PLT_SETUP_OPTIONS="-j 1" make install
Running raco setup is sensitive to the PLT_COMPILED_FILE_CHECK environment variable in the same way as raco make. Specifically, if PLT_COMPILED_FILE_CHECK is set to exists, then raco make does not attempt to update a compiled file’s timestamp if the file is not recompiled.
Changed in version 6.1: Added the --pkgs,
Changed in version 6.1.1: Added the --force-user-docs flag.
Changed in version 126.96.36.199: Added the --only-foreign-libs flag.
Changed in version 188.8.131.52: Added support for PLT_COMPILED_FILE_CHECK.