No project description provided
Project description
kraken-wrapper
Provides the krakenw
command which is a wrapper around Kraken to construct an isolated and reproducible build
environment.
Features
- Produces isolated environments in PEX format
- Reads build requirements from the
.kraken.py
file header - Produces lock files (
.kraken.lock
) that can be used to reconstruct an exact build environment 1)
1) The lock files do not contain hashes for installed distributions, but only the exact version numbers from the resolved build environment.
Requirements header
If no .kraken.lock
file is present, Kraken wrapper will read the header of the .kraken.py
file to obtain the
requirements to install into the build environment. The format of this header is demonstrated below:
# ::requirements kraken-std>=0.3.0,<0.4.0 --extra-index-url https://...
# ::pythonpath build-support
The available options are:
requirements
: Here you can specify any number of Pip requirements or local requirements (of the formatdist-name @ path/to/dist
) as well as--index-url
,--extra-index-url
and--interpreter-constraint
.pythonpath
: One or more paths to add thesys.path
before your build script is executed. Thebuild-script
folder is always added by default (as is the default behaviour by thekraken-core
Python script project loader).
Environment variables
KRAKENW_USE
: If set, it will behave as if the--use
flag was specified (although the--use
flag if given will still take precedence over the environment variable). Can be used to enforce a certain type of build environment to use (available values arePEX_ZIPAPP
(default),PEX_PACKED
,PEX_LOOSE
andVENV
).KRAKENW_REINSTALL
: If set to1
, behaves as if--reinstall
was specified.KRAKENW_INCREMENTAL
: If set to1
, virtual environment build environments are "incremental", i.e. they will be reused if they already exist and their installed distributions will be upgraded.
Recommendations
When using local requirements, using the VENV
type is a lot fast because it can leverage Pip's in-tree-build
feature. Pex does not currently support in-tree builds.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kraken_wrapper-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efe4032fdbce7f26509fa11441864f295933654c723a3db844d9d72691787eca |
|
MD5 | 1ed19b08847dc7a318b775ce05e2ab7f |
|
BLAKE2b-256 | f60ab61bb94ec0e71ccc8263580cc21c7da8c983c8cd4e1937bd9eea3a995d0b |