question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clarify `pex3 lock export` command.

See original GitHub issue

Both #1404 and #1405 are difficult problems to solve in order to have a pex3 lock export command that works without caveats (i.e.: that exports a universal lock as a universal requirements.txt). The pex3 lock export command should be better documented and possibly modified to explicitly support only exporting to one (or maybe more) explicit local interpreters or foreign platforms.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
jsiroiscommented, Apr 6, 2022

I’m going to modify the OP to narrow to dropping support for exporting universal locks as universal requirements.txt. Simply exporting for one (or possibly more) explicit interpreters regardless of the style the lock was originally created in - which is what is basically done now - makes sense.

1reaction
jsiroiscommented, Mar 4, 2022

For the same reason that Poetry and pipenv have export commands: interop with the rest of Python ecosystem.

This is pretty vague. Fwict the lingua franca of interop is the venv and Pex already has tools to create those. It would be great to have a 1st party use case report of where a requirements.txt format file is what is needed and not a venv created from it. Maybe you have one of those use cases but I have none. Every tool I use understands venv no matter who creates it, Poetry, Pipenv or Pex. If there is actually a case where interop is furthered by a requirements.txt format file and not a venv created from it it would be good to know if that requirements.txt format file needed to be faithful to the lock; i.e.: for a universal lock a complicated “universal” requirements.txt acheived through environment markers and thus necessitating #1404 and #1405 or just a requirements.txt that worked for a specific local interpreter. That latter is tractable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EXPORT command - IBM
The EXPORT command exports data from a database to one of several external file formats. The user specifies the data to be exported...
Read more >
Help: Clarify EXPORT() vs INSTALL(... EXPORT ... - GitLab
Export targets from the build tree for use by outside projects. It should simply say that it exports targets to the CMAKE_CURRENT_BINARY_DIR ...
Read more >
Use “Export - locks file” With ProjectWise Data for Working ...
The right-click menu is open and the "Export" command is highlighted blue. Choose “Export – Locks file, changes can be re-imported” and click...
Read more >
University of Groningen Pex13p degradation in yeast Chen, Xin
Zand et al, 2010). pex3 cells were reported to lack peroxisome like structures ... way in which a key in a lock opens...
Read more >
Diff - 8b3c8ba3d8c2680dab5363a80c024965cac08b1e^2 ...
diff --git a/Documentation/ABI/obsolete/sysfs-block-zram ... This section + shall help to clarify how the kernel crypto API uses + various components to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found