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

Snapcraft #2771

Closed
casperdcl opened this issue Nov 10, 2019 · 12 comments · Fixed by #2778
Closed

Snapcraft #2771

casperdcl opened this issue Nov 10, 2019 · 12 comments · Fixed by #2778
Assignees
Labels
build Issues/features related to building dvc install packages. enhancement Enhances DVC feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint

Comments

@casperdcl
Copy link
Contributor

casperdcl commented Nov 10, 2019

Provide a snap package

https://snapcraft.io

I can be assigned if needed

@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label Nov 10, 2019
@casperdcl casperdcl added build Issues/features related to building dvc install packages. enhancement Enhances DVC feature request Requesting a new feature and removed triage Needs to be triaged labels Nov 10, 2019
@casperdcl
Copy link
Contributor Author

I just registered https://snapcraft.io/dvc just in case :)

@ghost
Copy link

ghost commented Nov 10, 2019

Thanks, @casperdcl !

By the way, what do you think about #2760 ?

@efiop
Copy link
Contributor

efiop commented Nov 10, 2019

@casperdcl I remember installing skype from snap many years ago, and that is about the only time i've heard about it or used it :) Not quite sure I understand the purpose of creating a package for it, could you elaborate? I'm a bit worried about creating the package for it, because it might result in a situation we have with our AUR package, where no one was using it, so it just got abandoned.

@n3hrox
Copy link

n3hrox commented Nov 11, 2019

@efiop snap is now bundled with the newest ubuntu distros so it easier to install a lot of packages, though I have to agree I don't see many users actually downloading it from there at is is more designed for casual linux users and dvc is kind of niche software (unlike skype / spotify etc.)

@casperdcl
Copy link
Contributor Author

casperdcl commented Nov 11, 2019

@efiop

snap install dvc would differ from apt install python3-pip && pip3 install dvc in these ways:

  • would not rely on system python/conda/libffi/lib*.so etc (the snap would bundle its own dependencies, https://snapcraft.io/docs/python-apps)
  • would update automatically on-the-fly (same as apps on your phone set to auto-update)
  • dvc would be running in a somewhat sandboxed env which may make it more likely for security-conscious users to install

For example, https://snapcraft.io/tqdm surprisingly has about 170 users despite the fact that

  1. the vast majority of users don't know about its CLI usage, and
  2. snap python packages are not importable in any scripts, which is the main use of tqdm

@efiop
Copy link
Contributor

efiop commented Nov 11, 2019

@n3hrox @casperdcl Thanks for clarifying guys! So can it be considered a replacement for our deb and rpm packages that we already have? Or should we think about it as a more of an addition? I've also seen some mentions about homebrew for linux, which is, I guess, a similar thing, right? Maybe less newbie frendly, but still, kinda an idea of a package manager for all linux-es?

@casperdcl
Copy link
Contributor Author

@efiop yes I think so. I prefer snap install over apt install when available. Note that the Ubuntu Software Centre installs packages via snap too, so dvc would show up there...

image

@efiop
Copy link
Contributor

efiop commented Nov 11, 2019

Oh, nice! I agree, this would be nice to have. 🙂

@efiop efiop added the p3-nice-to-have It should be done this or next sprint label Nov 11, 2019
@casperdcl casperdcl self-assigned this Nov 11, 2019
@casperdcl
Copy link
Contributor Author

Ah I'll either need admin access to this repo or an admin needs to add it via https://build.snapcraft.io/select-repositories

@casperdcl
Copy link
Contributor Author

Actually nvm turns out a few months ago travis finally caught up https://blog.travis-ci.com/2019-06-21-snaps-support-travis-ci so don't think we need the repo linked

@efiop
Copy link
Contributor

efiop commented Nov 11, 2019

@casperdcl I've accepted the request for snapchatsnapcraft, does it work now?

@casperdcl
Copy link
Contributor Author

I'll submit a PR at some point.

Srry don't have snapchat :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues/features related to building dvc install packages. enhancement Enhances DVC feature request Requesting a new feature p3-nice-to-have It should be done this or next sprint
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants