Skip to content

Commit

Permalink
Prepare the 2.1.154 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Dec 13, 2023
1 parent 25ce9da commit 89e8cd3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Release Notes

## 2.1.154

This release brings three new features:

1. When creating PEXes without specifying an explicit
`--python-shebang`, an appropriate shebang is chosen correctly in
more cases than previously and a warning is emitted when the shebang
chosen cannot be guaranteed to be correct. The common case this
helps select the appropriate shebang for are PEXes built using
`--platform` or `--complete-platform`.
2. PEXes can now be created with `--no-pre-install-wheels` to cut down
PEX build times with a tradeoff of roughly 10% greater overhead upon
the 1st execution of the PEX file. For PEXes with very large
dependency sets (machine learning provides common cases), the build
time savings can be dramatic.
3. PEXes can now be told to install dependencies at runtime on 1st
execution using parallel processes using `--max-install-jobs` at PEX
build time or by setting the `PEX_MAX_INSTALL_JOBS` environment
variable at runtime.

The last two features come with complicated tradeoffs and are turned off
by default as a result. If you think they might help you use case, there
is more detail in the command line help for `--no-pre-install-wheels`
and `--max-install-jobs` as well as in the `pex --help-variables` output
for `PEX_MAX_INSTALL_JOBS`. You can also find a detailed performance
analysis in #2292 for extreme cases of small and large PEXes. In the end
though, experimenting is probably your best bet.

* Use appropriate shebang for multi-platform PEXes. (#2296)
* Add support for --no-pre-install-wheels and --max-install-jobs. (#2298)

## 2.1.153

This release fixes Pex runtime `sys.path` scrubbing to do less work and
Expand Down
2 changes: 1 addition & 1 deletion pex/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

__version__ = "2.1.153"
__version__ = "2.1.154"

0 comments on commit 89e8cd3

Please sign in to comment.