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.

Allow re-using pre-downloaded wheel source package

See original GitHub issue

What’s the problem this feature will solve?

Using github when building SynoCommunity packages over multiple archs we always try to download all sources once, then lets all builds to run in parallel using the same pre-downloaded source packages.

It is possible to download python wheels using: pip download ... --dest /path/to/destdir --requirement requirements.txt

Although it is not possible (or haven’t found) to call pip wheel so it checks first if the source .tar.gz file isn’t already downloaded when parsing the requirements file such as: pip wheel .... --dest path/to/destdir --requirement requirements.txt

Describe the solution you’d like

Add --dest to list of options to wheel to look for pre-downloaded source files. Pehaps adding a md5sum, sha256sum or similar would be best?

Alternative Solutions

no

Additional context

github-action build output: https://github.com/SynoCommunity/spksrc/pull/4937/checks

Code of Conduct

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
th0ma7commented, Nov 13, 2021

@pradyunsg and @uranusjr can I tell it to now install build dependencies when downloading? I mean, I just want it to download them, not initiate an installation.

$ pip download kodipydent-alt==2021.7.16 --no-binary :all: --dest distrib
Collecting kodipydent-alt==2021.7.16
  Downloading kodipydent-alt-2021.7.16.tar.gz (12 kB)
  Installing build dependencies ... /
0reactions
th0ma7commented, Nov 16, 2021

Thnx @uranusjr for the explanations. Then is it re-using the downloaded copy?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Can I reuse dependency already included in another ...
On Windows I can install these dependencies because pre-built wheels for all the libraries found here. This is a GIS ML project requiring:...
Read more >
What Are Python Wheels and Why Should You Care?
In this tutorial, you'll learn what Python wheels are and why you should care as both a developer and end user of Python...
Read more >
Code Reuse - an overview | ScienceDirect Topics
Nowadays, with the proliferation of good commercial and open source libraries, it makes much more sense to simply reuse code that others have...
Read more >
Packaging and distributing projects
Packaging your project. Source distributions. Wheels. Pure Python Wheels ... This is the current version of your project, allowing your users to determine ......
Read more >
US7669679B2 - Wheel assembly for decelerating and/or controlling ...
The wheel assembly including: a rim; a tire operatively connected to the rim; ... The primary objective of the present invention is 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