Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate self-contained bundles with dependencies #1190

Closed
wants to merge 7 commits into from
Closed

generate self-contained bundles with dependencies #1190

wants to merge 7 commits into from

Conversation

ygrek
Copy link
Contributor

@ygrek ygrek commented Feb 22, 2014

command opam bundle PKG will create subdirectory
bundle with archives of PKG and all it's transitive dependencies
and install.sh script when run will install everything into
local subdirectory.

TODO

  • optionally include/install compiler
  • excludes (e.g. ocamlfind)?
  • optional dependencies?

OpamGlobals.error_and_exit "bundle directory exists";
if not dryrun then
List.iter mkdir [bundle; archives];
let t = OpamState.load_state "bundle" in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit afraid of how this can be used in the following commands, as we don't want the currently installed packages, etc. to interfere in any way with the bundle itself.

@AltGr AltGr added this to the outgoing milestone Jun 20, 2014
@braibant
Copy link

This seems really useful. Unfortunately, it is not in the beta for opam 1.2. Is there any chance it could still be squeezed in?

command `opam bundle PKG` will create subdirectory
`bundle` with archives of PKG and all it's transitive dependencies
and `install.sh` script when run will install everything into
`local` subdirectory.

TODO
* optionally include/install compiler
* excludes (e.g. ocamlfind)?
* optional dependencies?
constrained by current state
@ygrek
Copy link
Contributor Author

ygrek commented Sep 27, 2014

Patches updated for the latest git. The current plan is to make a separate tool based on opam-lib, so I might submit a separate patch to expose OpamAction.peform_dot_install - what do you think?

@samoht
Copy link
Member

samoht commented Sep 27, 2014

The current plan is to make a separate tool based on opam-lib,

That sounds a great idea! Feel free to expose the functions you need in opam-lib to make that work.

@ygrek
Copy link
Contributor Author

ygrek commented Sep 28, 2014

see #1752

@ygrek ygrek closed this Sep 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants