Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the pex3 lock create command. #1464

Merged
merged 2 commits into from
Sep 21, 2021

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Sep 21, 2021

This provides a basic platform specific lock generation facility.

For now, the lock is only useful when a single platform or interpreter
is selected by the target options. A follow-up will introduce a lock
format that can store multiple locks allowing use and export of these
as individual units.

Work towards #1401.

This provides a basic platform specific lock generation facility.

For now, the lock is only useful when a single platform or interpreter
is selected by the target options. A follow-up will introduce a lock
format that can store multiple locks allowing use and export of these
as individual units.

Work towards pex-tool#1401.
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Comment on lines +53 to +57
"The style of lock to generate. The {strict!r} style is the default and generates "
"a lock file that contains exactly the distributions that would be used in a local "
"resolve. If an sdist would be used, the sdist is included, but if a wheel would "
"be used, an accompanying sdist will not be included. The {sources} style includes "
"locks containing wheels and the associated sdists when available.".format(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will strict include wheels for other platforms? (pantsbuild/pants#12458)

I traced the code back to this and can't tell:

https://github.com/pantsbuild/pex/blob/0ab02beb91b406563b88049fd470beca82a12d7d/pex/pip.py#L472-L478

Copy link
Member Author

@jsirois jsirois Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will not. This PR's issue, #1401, is all about platform specific locks. In order to get the Pip log data for other platforms, there are 4 Pip runtime patches that need to be applied and a new regex added here after that is done. That work will be PR'd under #1402.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I mean, yes - it will include wheels for other platforms when --platform is specified. I assumed you meant though for all possible other platforms, i.e.: totally platform agnostic. That's #1402.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I did mean #1402. Cool, thanks for clarifying!

@jsirois jsirois merged commit bac5e60 into pex-tool:main Sep 21, 2021
@jsirois jsirois deleted the issues/1401/lock-tool/create branch September 21, 2021 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants