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.

Installing multiple interdependent source packages

See original GitHub issue

Is there any way to install packages from local archives even if they specify dependency on each other?

To give you an example: I have these two source packages:

  • cli-wrapper
  • gui-wrapper
  • api-common

cli-wrapper depends on api-common and gui-wrapper depends on api-common. In reality I may need to install either cli+api, or gui+api, or cli+gui+api. The only way for me to get packages to the target is to copy the packages themselves, there’s no internet access where the packages are installed.

I’ve searched high and low, couldn’t find anything that’d do this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Oct 7, 2022

This works with the new resolver.

❯ pip install ./tests/data/packages/require_simple-1.0.tar.gz ./tests/data/packages/simple-2.0.tar.gz 
Processing ./tests/data/packages/require_simple-1.0.tar.gz
  Preparing metadata (setup.py) ... done
Processing ./tests/data/packages/simple-2.0.tar.gz
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: require-simple, simple
  Building wheel for require-simple (setup.py) ... done
  Created wheel for require-simple: filename=require_simple-1.0-py3-none-any.whl size=1197 sha256=70b1385a5ba7df7c2322580ded4ef731f6dfafae1d9985d9f4d734d422a73ec8
  Stored in directory: /Users/pradyunsg/Library/Caches/pip/wheels/ca/9f/9c/c046cc268dee07e1a06c9344d82c43ca5c509c8ad87222f349
  Building wheel for simple (setup.py) ... done
  Created wheel for simple: filename=simple-2.0-py3-none-any.whl size=1070 sha256=ca700cc109873b5378e5082e4d91cf10715a0346e8b0d321b824642f91b7afe1
  Stored in directory: /Users/pradyunsg/Library/Caches/pip/wheels/99/7d/53/f4075ef28c1caf83397bfa1009372da73b0e8c1d24a329dfbe
Successfully built require-simple simple
Installing collected packages: simple, require-simple
Successfully installed require-simple-1.0 simple-2.0
0reactions
wvxvwcommented, Dec 24, 2018

Are you asking for the following to be functional?

Precisely that, with an extra condition that one of the packages depends on another packages. I’ll update the post with verbose logs tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I Install a Salesforce Package, that is dependent on ...
yes, actually 'force-app' contains all the source code for the OMI package, which depends on LTI package (Sobjects). My scratch developer org ...
Read more >
Automatically install dependent libraries for a self-made ...
I have a question regarding on how to automatically install dependent libraries while installing a self-made package from source.
Read more >
Install and manage packages in Visual Studio using the ...
Find and install a package · Load a project in Solution Explorer, and then select Project > Manage NuGet Packages. · Select the...
Read more >
Python Dependencies - Everything You Need to Know
Click to learn everything about Python dependencies - from managing and adding, to packaging, checking or downloading. Here's all you need!
Read more >
Org Dependent Packages - packages for the masses with Keir ...
Org- dependent packages allow you to create unlocked packages that depend on code/configuration not present in the package.
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