Difference between revisions of "Platform Team/Package Management System/1.0/Notes"

From Sugar Labs
Jump to navigation Jump to search
m (moved Platform Team/Sweets/1.0/Notes to Platform Team/Package Management System/1.0/Notes: "Sweets" has evolved to hidden SN parts and public "Sweets Distributoin")
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Retrospection ==
 
== Retrospection ==
  
It is mostly 2 years passed after the time when a meeting, between several Zero Install and Sugar people, happened on #sugar-meeting IRC channel. The meeting was organized by Michael Stone (if I'm wrong, he will correct me) to exchange knowledge and to learn whether Zero Install might be a good fit for use in Sugar activity installation. Thomas Leonard wrote a [http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/2776 summary] and Michael Stone [http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/2776/focus=18807 forwarded] it to sugar-devel mailing list.
+
Two years ago, Michael Stone [http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/2728 rolled] the first try to get the folks at Sugar Labs excited about Zero Install software. Several people from both communities showed their interest, e.g., Bernie Innocenti, Thomas Leonard, Rene Lopez, and Anders F Björklund. As a result, a meeting occurred on the #sugar-meeting IRC channel. That meeting was organized by Michael Stone to exchange knowledge and to learn whether Zero Install might be a good fit for use in Sugar activity installation. Thomas Leonard wrote a [http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/2776 summary] and Michael Stone [http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/2776/focus=18807 forwarded] it to the sugar-devel mailing list.
  
The idea of using Zero Install in Sugar ecosystem passed several mutations and, eventually, it seems to be that core ideas were settled down and ready to be presented widely in Sugar community.
+
The idea of using Zero Install in the Sugar ecosystem passed several mutations and, eventually, it seems that the core ideas have settled down and are ready to be presented widely in the community.
  
== The purposes behind Sweets ==
+
Announcement:
 +
* [http://www.mail-archive.com/sugar-devel@lists.sugarlabs.org/msg23055.html sugar-devel, 02 October 2011].
 +
* [http://thread.gmane.org/gmane.comp.file-systems.zero-install.devel/4627 zero-install-devel, 02 October 2011].
 +
 
 +
== The pillars ==
  
 
=== Learning by doing ===
 
=== Learning by doing ===
  
The one of core ideas behind Sugar is learning by doing. It is critical to have the tool that will well support doing metaphor, doing not only within regular project teams but also by individuals who tweak the software in the process of learning. But not the least option is sharing results of experiments. Sweets is intended to make both aspects less annoying using the Zero Install system.
+
The preeminent core idea behind Sugar is learning by doing. Thus, it is critical to Sugar to have the tools that support the doing metaphor well, doing not only within regular activities and project teams, but also by individuals who tweak the software in the process of learning. And not the least of options is sharing the results of doer/learner experiments. Sweets is intended to make these aspects less annoying being based on the [http://0install.net/why.html Zero Install] system.
  
=== Do not reinvent the wheels ===
+
=== To not reinvent the wheels ===
  
It will be useful to let people in Sugar community to be concentrated only on software they are developing and reuse existed efforts of GNU/Linux distributions as underliing dependencies for developing software. The PackageKit project gives such possibility.
+
It will be useful to let people in the Sugar community to concentrate only on software they are developing, and to reuse existing efforts of GNU/Linux distributions as underlying dependencies for developing software. The [http://www.packagekit.org/ PackageKit] project provides this possibility.
  
 
=== Infrastructure does matter ===
 
=== Infrastructure does matter ===
  
The core difference of the final approach with previous evolutions is the idea that successful model should cover the full lifetime cycle of software, from developing by creators to using by community. Another project, Open Build System, was chosen for that.
+
The core difference of the final Sweets approach with previous evolutions is the idea that a successful model should cover the full life cycle of software, from developing by creators to using by the community. Another project, the [http://openbuildservice.org/ Open Build System], was chosen for that.
  
 
== What is Sweets ==
 
== What is Sweets ==
  
So, Sweets is a [http://en.wikipedia.org/wiki/Package_management_system Package Management System] based on [http://0install.net/ Zero Install], a decentralized cross-distribution software installation system. It is intended to distribute various software projects created in the Sugar ecosystem, such as libraries, sugar itself, and sugar activities.
+
So, Sweets is a [[wikipedia:Package_management_system |Package Management System]] entirely based on [http://0install.net/ Zero Install], a decentralized, cross-distribution, software installation system. It might be treated as a tools and infrastructure wrapper around Zero Install. Sweets is intended to distribute various software projects created in the Sugar ecosystem, such as libraries, sugar itself, and sugar activities.
  
 
This new distribution method is initiated assuming that:
 
This new distribution method is initiated assuming that:
  
* The method to share software projects should to be as convenient as possible.
+
* The method to share software projects should be as convenient as possible.
 
* It is important to stimulate users into becoming doers, to modify existing activities, and to share the results of their experiments with other people, i.e., a distribution method should handle different variants of the same project.
 
* It is important to stimulate users into becoming doers, to modify existing activities, and to share the results of their experiments with other people, i.e., a distribution method should handle different variants of the same project.
 
* This distribution method is not intended to be the only one, but is targeted more towards direct distribution—from software creators to software users.
 
* This distribution method is not intended to be the only one, but is targeted more towards direct distribution—from software creators to software users.
Line 31: Line 35:
 
The purpose is to create a new distribution method instead of reusing:
 
The purpose is to create a new distribution method instead of reusing:
  
# ''.xo bundles''
+
# [[Development_Team/Almanac/Activity_Bundles|''.xo bundles'']]
 
#* Work smoothly only for pure python activities, and only if all (and the same) dependencies are installed on all systems. They stop working smoothly if activities use non-standard dependencies or contain binaries.
 
#* Work smoothly only for pure python activities, and only if all (and the same) dependencies are installed on all systems. They stop working smoothly if activities use non-standard dependencies or contain binaries.
 
#* But, are not effective in supporting the use of multiple versions of software, e.g., the results of experiments (the work) of different doers, simultaneously. Users must manually handle the variety of activity versions, e.g., sort out all the local bundles or directories in {{Code|~/Activities}}.
 
#* But, are not effective in supporting the use of multiple versions of software, e.g., the results of experiments (the work) of different doers, simultaneously. Users must manually handle the variety of activity versions, e.g., sort out all the local bundles or directories in {{Code|~/Activities}}.
Line 41: Line 45:
 
At the same time, existing distribution methods are reused in Sweets:
 
At the same time, existing distribution methods are reused in Sweets:
  
# ''.xo bundles'' is a subset of the Sweets workflow
+
# [[Development_Team/Almanac/Activity_Bundles|''.xo bundles'']] is a subset of the Sweets workflow, from usage point of view
 
#* It is possible to bundle an entire directory as a sweet project to use it as a regular .xo file.
 
#* It is possible to bundle an entire directory as a sweet project to use it as a regular .xo file.
 
# ''native packages''
 
# ''native packages''
 
#* Sweets is not intended to create one more GNU/Linux distribution. It distributes only projects that people create within the Sugar community; all other software, i.e., dependencies, will be reused from native packages.
 
#* Sweets is not intended to create one more GNU/Linux distribution. It distributes only projects that people create within the Sugar community; all other software, i.e., dependencies, will be reused from native packages.
 
#* For cases like Sugar deployments, using the more centralized, regular repositories (third party or official GNU/Linux distributions with native packages) makes more sense. These native packages of Sugar software will be included in Sweets, as well. When people start using Sweets on top of these Sugar distributions, they will have the chance to choose between natively packaged Sugar components and components that came directly from software creators.
 
#* For cases like Sugar deployments, using the more centralized, regular repositories (third party or official GNU/Linux distributions with native packages) makes more sense. These native packages of Sugar software will be included in Sweets, as well. When people start using Sweets on top of these Sugar distributions, they will have the chance to choose between natively packaged Sugar components and components that came directly from software creators.
#* It is possible, when there is a need, to automatically package sweets into native packages. See [[Platform_Team/Sweets_Distribution|Sweets Distribution]], for example.
+
#* It is possible, when there is a need, to automatically package sweets into native packages. See [http://download.sugarlabs.org/packages/SweetsDistribution:/ Sweets Distribution], for example.
  
 
See the [[Platform_Team/Sweets/Glossary|Glossary]] to learn more.
 
See the [[Platform_Team/Sweets/Glossary|Glossary]] to learn more.
 +
 +
== In this release ==
 +
 +
This is the initial release and has missed some critical points for Sugar, e.g., a GUI to launch activities using Sweets. The major purpose for this release is exposing the fact that basic ideas and core implementations are mature enough to make Sweets useful in some [[#Try_the_release|workflows]] and to involve more people in Sweets and Sweets related project testing and development, e.g., a la Ubuntu AppCenter for Sugar.
  
 
== Getting the release ==
 
== Getting the release ==
  
The details instructions can be found on [[Platform_Team/Guide/Sweets_Usage#Installation|Sweets Usage]] guide.
+
The details instructions can be found in [[Platform_Team/Guide/Sweets_Usage#Installation|Sweets Usage]] guide.
  
First, install PackageKit package with integration with Desktop Environment you are using, e.g., {{Code|gnome-packagekit}} for Gnome. It is important to install exactly integration package because it will contain authentication agent. After installation, it might require to relogin from Desktop Environment session.
+
First, install the PackageKit package with the packages for integration with the Desktop Environment you are using, e.g., {{Code|gnome-packagekit}} for Gnome. It is important to install the exact integration package required to have an authentication agent that depends on the particular Desktop Environment. After installation, it might be required to relogin from the Desktop Environment session.
  
 
Download and run Sweets installer:
 
Download and run Sweets installer:
Line 61: Line 69:
 
  sh installer.sh
 
  sh installer.sh
  
Relogin from X session to take into account the new PATH environment variable value that installer will set.
+
Relogin from the Desktop Environment session to take into account the new PATH environment variable value that the installer will set.
 
 
Note, Sugar Shell does not start authentication agent and preparing sugar start can be processed only in Desktop Environment, e.g., Gnome. To launch recent stable Sugar version in emulator mode, type in terminal:
 
  
sweets sdk/sugar:emulator
+
== Try the release ==
  
To run particular version:
+
There are Sugar Shell sweets as an example of how to use Sweets in practice. See [[Platform_Team/Guide/Sweets_Usage#Sugar_via_Sweets|Sweets Usage]] guide for instructions.
  
sweets sdk/sugar:emulator = 0.88
+
== Further reading ==
  
After that, it is possible to run Sugar via sweets from [[Platform_Team/Guide/Sweets_Usage#Sugar_via_Sweets|X session]].
+
* [[Platform_Team/Sweets|Sweets]] home page.
 +
* [[Platform_Team/Guide/Sweets_Usage|Sweets Usage]] - A guide to know how to launch software using Sweets.
 +
* [[Platform_Team/Guide/Sweets_Packaging|Sweets Packaging]] - A guide to know how to make your software accessible via Sweets.
 +
* [[Platform_Team/Infrastructure|Infrastructure Map]] - An overview of the Sweets software world.
  
 
== Looking forward ==
 
== Looking forward ==
Line 78: Line 87:
  
 
* provide [[Activity Library]] activities via Zero Install,
 
* provide [[Activity Library]] activities via Zero Install,
* support search among remote sweets on a client side,
+
* support search among remote sweets on the client side,
* Initial GUI for browsing local and remote sweets.
+
* provide an initial GUI for browsing local and remote sweets.
 +
 
 +
== Feedback ==
 +
 
 +
{{:Platform_Team/Sweets/Feedback}}
  
 
== Credits ==
 
== Credits ==
  
* People who pointed Zero Install out and organized the meeting between Zero Install and Sugar people, Michael Stone.
+
* People who pointed Zero Install out and made an initial push, Michael Stone.
 
* Zero Install development team to take care about reviewing the code that was introduced by Sugar workflow needs.
 
* Zero Install development team to take care about reviewing the code that was introduced by Sugar workflow needs.
 
* People who pointed Open Build System out, Jigish Gohil and David Van Assche.
 
* People who pointed Open Build System out, Jigish Gohil and David Van Assche.
* People who initially tested Sweets and replied with useful feedback, Michael Stone, Rafael Ortiz, Sebastian Silva.
+
* People who initially tested Sweets and replied with useful feedback, Michael Stone, Rafael Ortiz, Sebastian Silva, Bernie Innocenti.
* The [[Wiki Team]] for continuous polishing [[Platform_Team/Sweets|Sweets]] wiki pages.
+
* The [[Infrastructure Team]] for their help with setting up services required for Sweets infra.
* [http://activitycentral.com/ Activity Central] for supporting during the work on 1.0 release final phase.
+
* The [[Wiki Team]] for continuous polishing of [[Platform_Team/Sweets|Sweets]] wiki pages.
 +
* [http://activitycentral.com/ Activity Central] for supporting the work on the 1.0 release final phase.

Latest revision as of 05:11, 27 April 2012

Retrospection

Two years ago, Michael Stone rolled the first try to get the folks at Sugar Labs excited about Zero Install software. Several people from both communities showed their interest, e.g., Bernie Innocenti, Thomas Leonard, Rene Lopez, and Anders F Björklund. As a result, a meeting occurred on the #sugar-meeting IRC channel. That meeting was organized by Michael Stone to exchange knowledge and to learn whether Zero Install might be a good fit for use in Sugar activity installation. Thomas Leonard wrote a summary and Michael Stone forwarded it to the sugar-devel mailing list.

The idea of using Zero Install in the Sugar ecosystem passed several mutations and, eventually, it seems that the core ideas have settled down and are ready to be presented widely in the community.

Announcement:

The pillars

Learning by doing

The preeminent core idea behind Sugar is learning by doing. Thus, it is critical to Sugar to have the tools that support the doing metaphor well, doing not only within regular activities and project teams, but also by individuals who tweak the software in the process of learning. And not the least of options is sharing the results of doer/learner experiments. Sweets is intended to make these aspects less annoying being based on the Zero Install system.

To not reinvent the wheels

It will be useful to let people in the Sugar community to concentrate only on software they are developing, and to reuse existing efforts of GNU/Linux distributions as underlying dependencies for developing software. The PackageKit project provides this possibility.

Infrastructure does matter

The core difference of the final Sweets approach with previous evolutions is the idea that a successful model should cover the full life cycle of software, from developing by creators to using by the community. Another project, the Open Build System, was chosen for that.

What is Sweets

So, Sweets is a Package Management System entirely based on Zero Install, a decentralized, cross-distribution, software installation system. It might be treated as a tools and infrastructure wrapper around Zero Install. Sweets is intended to distribute various software projects created in the Sugar ecosystem, such as libraries, sugar itself, and sugar activities.

This new distribution method is initiated assuming that:

  • The method to share software projects should be as convenient as possible.
  • It is important to stimulate users into becoming doers, to modify existing activities, and to share the results of their experiments with other people, i.e., a distribution method should handle different variants of the same project.
  • This distribution method is not intended to be the only one, but is targeted more towards direct distribution—from software creators to software users.

The purpose is to create a new distribution method instead of reusing:

  1. .xo bundles
    • Work smoothly only for pure python activities, and only if all (and the same) dependencies are installed on all systems. They stop working smoothly if activities use non-standard dependencies or contain binaries.
    • But, are not effective in supporting the use of multiple versions of software, e.g., the results of experiments (the work) of different doers, simultaneously. Users must manually handle the variety of activity versions, e.g., sort out all the local bundles or directories in ~/Activities.
  2. native packages
    • Not the shortest way to connect developers with users.
    • In most cases, they don't support multiple versions of the same project.
    • They don't work at all for sharing results of experiments.

At the same time, existing distribution methods are reused in Sweets:

  1. .xo bundles is a subset of the Sweets workflow, from usage point of view
    • It is possible to bundle an entire directory as a sweet project to use it as a regular .xo file.
  2. native packages
    • Sweets is not intended to create one more GNU/Linux distribution. It distributes only projects that people create within the Sugar community; all other software, i.e., dependencies, will be reused from native packages.
    • For cases like Sugar deployments, using the more centralized, regular repositories (third party or official GNU/Linux distributions with native packages) makes more sense. These native packages of Sugar software will be included in Sweets, as well. When people start using Sweets on top of these Sugar distributions, they will have the chance to choose between natively packaged Sugar components and components that came directly from software creators.
    • It is possible, when there is a need, to automatically package sweets into native packages. See Sweets Distribution, for example.

See the Glossary to learn more.

In this release

This is the initial release and has missed some critical points for Sugar, e.g., a GUI to launch activities using Sweets. The major purpose for this release is exposing the fact that basic ideas and core implementations are mature enough to make Sweets useful in some workflows and to involve more people in Sweets and Sweets related project testing and development, e.g., a la Ubuntu AppCenter for Sugar.

Getting the release

The details instructions can be found in Sweets Usage guide.

First, install the PackageKit package with the packages for integration with the Desktop Environment you are using, e.g., gnome-packagekit for Gnome. It is important to install the exact integration package required to have an authentication agent that depends on the particular Desktop Environment. After installation, it might be required to relogin from the Desktop Environment session.

Download and run Sweets installer:

wget http://download.sugarlabs.org/sweets/sweets/installer.sh
sh installer.sh

Relogin from the Desktop Environment session to take into account the new PATH environment variable value that the installer will set.

Try the release

There are Sugar Shell sweets as an example of how to use Sweets in practice. See Sweets Usage guide for instructions.

Further reading

Looking forward

The next minor, 1.1, release should:

  • provide Activity Library activities via Zero Install,
  • support search among remote sweets on the client side,
  • provide an initial GUI for browsing local and remote sweets.

Feedback

  • Submit your bug report or feature request.
  • Subscribe to the sugar-devel mailing list and email with the subject prefixed with [SWEETS].
  • Ask your question on IRC channels, #sugar (not logged) or #sugar-newbies (logged).

Credits

  • People who pointed Zero Install out and made an initial push, Michael Stone.
  • Zero Install development team to take care about reviewing the code that was introduced by Sugar workflow needs.
  • People who pointed Open Build System out, Jigish Gohil and David Van Assche.
  • People who initially tested Sweets and replied with useful feedback, Michael Stone, Rafael Ortiz, Sebastian Silva, Bernie Innocenti.
  • The Infrastructure Team for their help with setting up services required for Sweets infra.
  • The Wiki Team for continuous polishing of Sweets wiki pages.
  • Activity Central for supporting the work on the 1.0 release final phase.