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.

Ability to select a package installed with suffix as default installation

See original GitHub issue

How would this feature be useful? Binaries from packages installed with a suffix currently also end with the same suffix. This makes it impossible to use them together with existing scripts and is cumbersome to use. These issues could be alleviated by installing the binaries without a suffix. To work around the name clashes, an additional command is added with which one can quickly switch between installed packages and their suffixes.

Describe the solution you’d like I have started a proof of concept here: https://github.com/ctbur/pipx/compare/master...command-select With pipx select you can choose which installed suffix is used as the default.

Example:

pipx install pre-commit==2.4 --suffix _2_4
pipx install pre-commit==2.5 --suffix _2_5
pipx select pre-commit_2_4
pre-commit --version  # will show version 2.4
pipx select pre-commit_2_5
pre-commit --version  # will show version 2.5

Please let me know if that is something that you would like to add to pipx, too. If so, I will expand on the proof of concept and add documentation, tests, autocomplete, a changelog entry and proper commit message.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
itsayellowcommented, Sep 29, 2020

IMO, this seems a worthwhile benefit to functionality and not too much extra complexity as far as I can tell.

Before working on it more I would wait for #498 to land, it cleans up a bunch of code related to suffixes.

1reaction
uranusjrcommented, Sep 26, 2020

Yes, Windows would be a problem. I put symlink in quotes because we likely should implement something that mimics the symlink functionality instead of using os.symlink directly. We could e.g. create a file in place of an actual venv that contains tracking metadata, or create a directory that contains just metadata as you said.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install a Python package into a different directory using pip?
Using --prefix=$PREFIX_PATH doesn't seem to allow to have full control of installation directory as there's system specific suffix being appended to it (...
Read more >
install.packages function - RDocumentation
Download and install packages from CRAN-like repositories or from local files. ... If it is NULL (the default) a subdirectory downloaded_packages of the ......
Read more >
Install a Package - Salesforce Help
Install a managed package in your Salesforce org to add new functionality to your org. Choose a custom installation to modify the default...
Read more >
Chapter 4. Installing Applications: Packages and Ports
Each set of these files is used to compile and install an individual application on FreeBSD, and is called a port. By default,...
Read more >
Client installation parameters and properties - Configuration ...
Use the CCMSetup.exe command to install the Configuration Manager ... The Windows Installer package client.msi that installs the client ...
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