ADocumentation Index
Fetch the complete documentation index at: https://mintlify.com/WyattBrashear/507ex-utils2/llms.txt
Use this file to discover all available pages before exploring further.
dependfile is an optional plain-text file placed in the root of your source directory alongside runfile. It declares the packages FZX2 should install before executing your application. When you build with a dependfile present, its contents are embedded verbatim into the .507ex metadata header and 507ex-depends is set to True. At execution time, FZX2 reads that block, prompts the user to confirm, and runs the appropriate install command for each dependency. If no dependfile exists, 507ex-depends is set to False and no installation step occurs.
File format
- Command line — a line starting with
!(other than!PLATFORM) that defines the install tool and its base invocation. The format is!NAME|command_prefix. - Platform line —
!PLATFORM <value>restricts installation to a specific platform or*for all platforms. The value is compared against Python’ssys.platformat runtime. - Dependency lines — one dependency per line. For each line, FZX2 runs
<command_prefix> <dependency>.
The command line
The!NAME|command syntax separates a human-readable label from the actual shell prefix used for installation.
| and takes the right-hand side as the command prefix. Each dependency line is appended to produce the full shell command. For the example above and a dependency of together, FZX2 runs:
The PLATFORM line
!PLATFORM controls which operating system the following dependencies apply to. The value is matched against Python’s sys.platform.
| Value | Effect |
|---|---|
* | Install on all platforms |
linux | Install only on Linux |
darwin | Install only on macOS |
win32 | Install only on Windows |
FZX2 checks
dependency_platform == sys.platform or dependency_platform == '*' before running any install command, so unmatched platforms are silently skipped.Full example
The following is the canonical example from the FZX2 source:together package using python3 -m pip install together on any platform.
The corresponding main.py that uses this dependency:
Effect on .507ex metadata
Whendependfile is present at build time, the build function reads its contents and embeds them in the executable header:
dependfile is absent:
507ex-depends|False value causes FZX2 to skip the dependency parsing step entirely at runtime.
Runtime installation flow
Check the metadata flag
FZX2 reads
507ex-depends from the header. If it is False, the dependency step is skipped and execution proceeds immediately.Prompt for confirmation
If dependencies are present, FZX2 asks the user interactively whether to install them (y/n) before running any commands.
Parse the dependency block
FZX2 reads the
!507EX-DEPENDENCIES section line by line, extracting the command prefix from the !NAME|command line and the target platform from !PLATFORM.Install each dependency
For each dependency line, if the current
sys.platform matches the declared platform (or the platform is *), FZX2 runs: