wimglenn / johnnydep

Display dependency tree of Python distribution
MIT License
496 stars 27 forks source link

It works very long #125

Open prshir opened 1 year ago

prshir commented 1 year ago

Hello! I use the johnnydeplib for build dependencies graph. It took 1.5 hours to build dependencies of pysal lib. I run it from cmd, the command is johnnydep.exe pysal Is it reasonable to work for so long?

prshir commented 1 year ago

The johnnydep version is 1.20.2, the internet speed is quite high

wimglenn commented 1 year ago

Can not reproduce. For me this tree rendered in 2 and a half minutes:

$ johnnydep pysal

That's not fast, and there is definitely room for improvement, but nothing like 1.5 hours! Since you're on Windows platform perhaps some of the dependencies in this tree did not have .whl available on PyPI and so they had to be compiled from sdist, that could explain such a long runtime.

aylusltd commented 1 month ago

I'm having the same problem on both ubuntu and mac. We use johnnydep as part of our opensource tool and all my workflows are timing out.

aylusltd commented 1 month ago

This guy now takes 1+hr per run on a clean vm: https://github.com/StartupOS/verinfast/blob/main/src/verinfast/dependencies/walkers/python.py

wimglenn commented 1 month ago

v2.0.0 will be significantly faster (coming soon)

aylusltd commented 1 month ago

Anything I can do to help? Happy to cut PRs/close issues if there's anything useful I can contribute.