Hacker News new | ask | show | jobs
by seg_lol 2060 days ago
You could create a zip of the contents of site-packages and add that your PYTHONPATH.

Look for the metadata.json, in the dist-info directory

   {
      "requires": [
        "chardet (>=3.0.2,<4)",
        "idna (>=2.5,<3)",
        "urllib3 (!=1.25.1,<1.26,!=1.25.0,>=1.21.1)",
        "certifi (>=2017.4.17)"
      ]
    }
which I see isn't in all dist-info dirs.

You could also look at

    pip download --no-binary ':all:' --src src requests
It will download the source archives for those package and its deps. I think what you want is within reach. My email is profile, feel free to ask questions.
1 comments

Thanks for the ideas. I had a free AWS instance doing uplink tshark capture during pip install and generated a page with links to all the dependencies (upgrade to a tar of all those later, when discovered the cache option for pip). But I let the instance go when it wasn't free anymore. Yes I'm cheap.