indygreg/PyOxidizer

add pre-fetch/local dependency substitution feature

wucke13 opened this issue · 0 comments

I'm currently trying to package the https://github.com/seL4/microkit SDK for https://github.com/nixOS/nixpkgs/ . Builds in Nix are hermetically sealed, meaning during a build no internet connection is allowed. However, one can use a URL fetcher + a hash to fetch a pinpointed dependency. Alternatively, one can opt in to having internet connection during the compilation, but then all generated artifacts are hashed (and the hash has to be stable).

In order to package something which relies on PyOxidizer, it would be desirable to

  • either be able to pre-fetch all dependencies for a build (like `cargo vendor)
  • or to allow substitution of all artifacts which are normally downloaded by PyOxidizer with local files (which then one can pre-fetch themselves)

Possibly related: #204, #589