apt-get install leo

404 views
Skip to first unread message

Davy Cottet

unread,
Nov 24, 2014, 12:57:40 PM11/24/14
to leo-e...@googlegroups.com
Hi,

I'm happy to announce first releases of Leo 5.0 as a debian/ubuntu packages !
For now it is available on my personal package archive ppa, and I hope it will be on leo's soon.

Let's go straight to the interesting part, thanks to try my builds on your debian based environment :

On Ubuntu :

sudo add-apt-repository ppa:davy39/ppa
sudo apt
-get update
sudo apt
-get leo

On other Debian based system :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B84B2247  
sudo add
-apt-repository "http://ppa.launchpad.net/davy39/ppa/ubuntu utopic main"
sudo apt
-get update
sudo apt
-get leo

This would even be better if you run it on various fresh installed environment, as a live CD or Virtualbox in order for us to see if every dependencies are well managed.

What have be done :
- I choose to install leo as a private module in /usr/share/pyshared as it is recommended by Debian policy for Python Apps
- Leo should be well integrated to your desktop, with shortcut in your menus (developpement sub-menu) and it should open .leo files with leo by default (leo.detktop & leo.mime)
- Leo launcher is installed into /usr/bin/
- All dependencies and Leo should be installed and updated with your system
- All the steps are documented and automatized into leo/dist/leoDist.leo file

What should be done soon (from debian/lintian point of vue):
(this is already patched in Leo from my ppa)
  • - Fix some permissions : some files are executable on the repository but shouldn't be :
W: leo: executable-not-elf-or-script usr/share/pyshared/leo/Icons/cleo/date_past.png
W: leo: executable-not-elf-or-script usr/share/pyshared/leo/plugins/GraphCanvas/GraphCanvas.ui
W: leo: executable-not-elf-or-script usr/share/pyshared/leo/Icons/cleo/date_today.png
  • It would be better to use debian javascript libraries than embeded ones :
W: leo: embedded-javascript-library usr/share/pyshared/leo/doc/underscore.js please use libjs-underscore
W: leo: embedded-javascript-library usr/share/pyshared/leo/external/ckeditor/adapters/jquery.js please use libjs-jquery
W: leo: embedded-javascript-library usr/share/pyshared/leo/external/ckeditor/ckeditor.js please use ckeditor
W: leo: embedded-javascript-library usr/share/pyshared/leo/plugins/pygeotag/jquery.js please use libjs-jquery
  • Remove leo-install.py script and build manpages for leo launcher (what is leoc for ?)


For having a very nice package, we could think about moving docs, examples, tests and distribution files out of leo module.

I think the first one to be moved is distribution one, otherwise it require to rebuild the entire source tarball everytime we make a little modification of distribution packaging config. It's very enoying.

One last problematic point was versioning. Various files need to be modify when changing realse. I think it's a good opportunity to use clone outlines. Moreover, it will facilitate the task if we could use a debian:ubuntu friendly versionning as Leo-5.0~rc1 and Leo-5.0~final


Thanks for testing !

Matt Wilkie

unread,
Nov 24, 2014, 1:07:02 PM11/24/14
to leo-e...@googlegroups.com
a great contribution, thanks Davy!

-matt

Davy Cottet

unread,
Nov 24, 2014, 2:20:00 PM11/24/14
to leo-e...@googlegroups.com
Sorry for that, I've just seen that there is a copy-paste mistake in debian/leo.sharedmimeinfo.
It give the following error during installation : Root element <mime-type> is not <mime-info> (in '/usr/share/mime/packages/leo.xml').
It's just a mime issue, you still can enjoy leo, I'll correct it tomorrow so you'll have an upgrade.

Davy Cottet

unread,
Nov 25, 2014, 12:31:44 AM11/25/14
to leo-e...@googlegroups.com
Please do not install from ppa yet, there is also a probleme with launchers. In fact setuptools generated scripts do not support private modules.
I didn't realize that before because a had some gost installations of leo hidden in my system.
That will be an advantage of having a deb installer that deal with installing/upgrading/removing leo properly...

Davy Cottet

unread,
Nov 25, 2014, 2:29:47 AM11/25/14
to leo-e...@googlegroups.com
It's fixed !

Let's download it ! You'll get a nice leo launcher in you menu and .leo showing the wonderfull leo icon inside your folders :)

Edward, what do you think about moving dist folder into root dir and add all the windows related files into it?
Can I start working on it ?

Edward K. Ream

unread,
Nov 25, 2014, 7:15:16 AM11/25/14
to leo-editor

I don't understand all the implications.  It will likely affect scripts in dist.leo.  And it may affect LeoPackage.pmsp.  I don't think it will affect Leo as a portable app, but I wouldn't bet my life on it.
 
Can I start working on it ?

​Please do. ​
 
​5.0-final will not be affected in any way, and we can test installation issues by working on a dummy 5.0.1 release.

Edward

Edward K. Ream

unread,
Nov 25, 2014, 8:42:18 AM11/25/14
to leo-e...@googlegroups.com

On second thought, I don't mind having you create a top-level dist folder, but please leave the leo/dist folder strictly unchanged.  In other words, your script may have to copy files from the leo/dist folder to the top-level dist folder.

The scripts and files in leo/dist/dist.leoDist.leo are fragile and path-dependent.  Absolutely the very last thing I want to do is to debug them all over again ;-)

Edward

Davy Cottet

unread,
Nov 25, 2014, 9:00:38 AM11/25/14
to leo-e...@googlegroups.com
Don't worry I will be careful, and first study you scripts details.
Do you know if it is possible to run your windows builder under linux environment ?

Terry Brown

unread,
Nov 25, 2014, 10:37:45 AM11/25/14
to leo-e...@googlegroups.com
On Mon, 24 Nov 2014 09:57:40 -0800 (PST)
Davy Cottet <cotte...@gmail.com> wrote:

> Hi,
>
> I'm happy to announce first releases of Leo 5.0 as a debian/ubuntu
> packages !
> For now it is available on my personal package archive ppa, and I
> hope it will be on leo's soon.
>
> Let's go straight to the interesting part, thanks to try my builds on
> your debian based environment :
>
> *On Ubuntu :*
> sudo add-apt-repository ppa:davy39/ppa
> sudo apt-get update
> sudo apt-get leo

Very very cool - just tried this in a clean virtual Ubuntu 14.04 and it
worked perfectly. I see it installs an command line command (`leo`)
too, excellent.

Of course... never satisfied :-), I'm wondering what it takes to get it
into the Ubuntu repositories :-} And are we even ready for the traffic
that might generate?

Cheers -Terry

> On other Debian based system :
> sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
> B84B2247
> <http://keyserver.ubuntu.com:11371/pks/lookup?search=0x98BB61D98E5B7F41A39403AAD3A30653B84B2247&op=index>
> sudo add-apt-repository "http://ppa.launchpad.net/davy39/ppa/ubuntu
> utopic main"
> sudo apt-get update
> sudo apt-get leo
>
> This would even be better if you run it on various fresh installed
> environment, as a live CD or Virtualbox in order for us to see if
> every dependencies are well managed.
>
> *What have be done :*
> - I choose to install leo as a private module in /usr/share/pyshared
> as it is recommended by Debian policy for Python Apps
> - Leo should be well integrated to your desktop, with shortcut in
> your menus (developpement sub-menu) and it should open .leo files
> with leo by default (leo.detktop & leo.mime)
> - Leo launcher is installed into /usr/bin/
> - All dependencies and Leo should be installed and updated with your
> system
> - All the steps are documented and automatized into
> leo/dist/leoDist.leo file
>
> *What should be done soon (from debian/lintian point of vue):*
>
> - w3s icons should be removed from leo/plugin/geotag/template.html
> as they are a breach in a privacy point of vue
> https://lintian.debian.org/tags/privacy-breach-w3c-valid-html.html
>
> (this is already patched in Leo from my ppa)
>
> - - Fix some permissions : some files are executable on the
> repository but shouldn't be :
>
> W: leo: executable-not-elf-or-script
> usr/share/pyshared/leo/Icons/cleo/date_past.png
> W: leo: executable-not-elf-or-script
> usr/share/pyshared/leo/plugins/GraphCanvas/GraphCanvas.ui
> W: leo: executable-not-elf-or-script
> usr/share/pyshared/leo/Icons/cleo/date_today.png
>
> - It would be better to use debian javascript libraries than
> embeded ones :
>
> W: leo: embedded-javascript-library
> usr/share/pyshared/leo/doc/underscore.js please use libjs-underscore
> W: leo: embedded-javascript-library
> usr/share/pyshared/leo/external/ckeditor/adapters/jquery.js please
> use libjs-jquery
> W: leo: embedded-javascript-library
> usr/share/pyshared/leo/external/ckeditor/ckeditor.js please use
> ckeditor W: leo: embedded-javascript-library
> usr/share/pyshared/leo/plugins/pygeotag/jquery.js please use
> libjs-jquery
>
> - Precise copyright : There are too many versions of the MIT
> license <http://en.wikipedia.org/wiki/MIT_License#Various_versions>.
> Please use Expat <http://www.jclark.com/xml/copying.txt> instead,
> - Remove leo-install.py script and build manpages for leo launcher

Edward K. Ream

unread,
Nov 25, 2014, 11:29:45 AM11/25/14
to leo-editor
On Tue, Nov 25, 2014 at 8:00 AM, Davy Cottet <cotte...@gmail.com> wrote:
Don't worry I will be careful, and first study you scripts details.
Do you know if it is possible to run your windows builder under linux environment ?

​It's pure python, using git tools.  It should work if git is installed, but try it and see ;-)

Edward

Davy Cottet

unread,
Nov 25, 2014, 12:30:28 PM11/25/14
to leo-e...@googlegroups.com
Of course... never satisfied :-), I'm wondering what it takes to get it
into the Ubuntu repositories :-}  And are we even ready for the traffic
that might generate?

To enter into the main Ubuntu repository, the package have to be reviewed and sponsored by an official debian "developper". Only him will be authorized to upload to debian repos (then will automatically be ported to ubuntu).
As, Leo is a "simple" python module (I mean only python coded and just one entry point), I would be glad to start as a Debian "maintainer".
I don't know yet exactly what are debian degree of expectation neither delay we could expect.
Just having a quick look at other python projects, I think most of the work will be at the beginning to restructure a bit Leo repo.
As I said before, I think it would be better to move dist, doc and examples to the root directory. Maybe it's not even necessary.
When this part will be done, I think that maintenance would be very easy to do for new releases, mostly add an entry to a changelog.

I'm actually working in parallel on Eric IDE packaging, it's mostly update and adapt previous work (I learned a lot from it !).
When it will be done (soon), I think I'll contact debian python apps team to ask for a sponsor and upload.
I'll ask them what they think of Leo's code and my packaging and we'll know better what to do and hopefully get helped.


​It's pure python, using git tools.  It should work if git is installed, but try it and see ;-)
Yes I thought that all the nsis magic was on it but apparently not ;)
I found that makensis builder was able to run on linux (apt-get install nsis ;) so I'll play a little bit with it after my actual rpm tests.
So basicaly, make-leo does some cleaning, list files to include to source tarball and zip it, isn't it ?

Seth Johnson

unread,
Nov 28, 2014, 10:43:14 AM11/28/14
to leo-e...@googlegroups.com
Any chance this can be put somewhere where I don't need to use apt-key?

1) Is Debian/Ubuntu the only repo that's doing the apt-key stuff? I'm
thinking you're going to get more people testing if you put it up in
another place.

I'm using fink on Mac OSX at the mo (it's a new architecture for me),
and I don't know if I can get it to work that way. But fink doesn't
have apt-key. I may try to force apt-key in somehow, but wonder if it
can simply be evaded somehow.


Seth
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to leo-editor+...@googlegroups.com.
> To post to this group, send email to leo-e...@googlegroups.com.
> Visit this group at http://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.

Davy Cottet

unread,
Nov 28, 2014, 12:11:49 PM11/28/14
to leo-e...@googlegroups.com
Well, to tell the truth I did never even power on any apple thing...
I didn(t know that there was a mac support for .deb packages, so I just had a look at Fink.

As .deb, packages are similar to debian ones but identical, mean debian packages cannot run out of the box on your system;

From what I've seen by opening one Fink .deb:
   - Prefix is not /usr  but /sw
   - Shortcuts seems to be /sw/Application/

Another fundamental difference  is that dependencies doesn't have the same name. But the good news is that it's seems that requirements are actaually satisfied by Fink repos;
http://pdb.finkproject.org/pdb/package.php/qt4-base-mac
http://pdb.finkproject.org/pdb/package.php/pyqt4-mac-py27

So, I think that is a promising way of mac distribution for Leo since It seems not very different to build .deb for Fint that for linux... and I just like the idea of Fink project :)

I'll try to build a modified and package to let you try it ( dpkg -i  ). If it work, we could think to ask for integration it into Fink repository.

Seth Johnson

unread,
Nov 28, 2014, 12:30:08 PM11/28/14
to leo-e...@googlegroups.com
Wow, how sweet. That would be so cool! :-)

No pressure. I like what you're saying at the bottom just for the
incremental gain of getting it without the apt-key. Plus your
identifying the relevant Mac OSX dependencies.


Seth

Davy Cottet

unread,
Nov 29, 2014, 3:53:56 AM11/29/14
to leo-e...@googlegroups.com
I've just uploaded a first shot, thanks to test it and report how it goes.
We can developp this Fink subject here : https://groups.google.com/forum/#!topic/leo-editor/N5KXoX2U3sE

Seth Johnson

unread,
Nov 29, 2014, 10:30:56 AM11/29/14
to leo-e...@googlegroups.com
See my note there.

Edward K. Ream

unread,
Mar 2, 2016, 2:54:06 PM3/2/16
to leo-editor
On Monday, November 24, 2014 at 11:57:40 AM UTC-6, Davy Cottet wrote:

> I'm happy to announce first releases of Leo 5.0 as a debian/ubuntu packages !

Somehow I missed this back in November.  Oh yes. I had just had a hip replaced...

Anyway, this is super news. This will give Leo a lot of credibility.

I'm wondering. How difficult is it for you to create a new package? Is the process mostly automated? Should any scripts be part of Leo's repo?

Edward

Edward K. Ream

unread,
Mar 9, 2016, 9:28:01 AM3/9/16
to leo-editor
On Monday, November 24, 2014 at 11:57:40 AM UTC-6, Davy Cottet wrote:

> I'm happy to announce first releases of Leo 5.0 as a debian/ubuntu packages !

Davy, are you willing to create a package for Leo 5.2?

Edward

AgedLace

unread,
Aug 6, 2017, 6:15:10 AM8/6/17
to leo-editor


On Monday, November 24, 2014 at 12:57:40 PM UTC-5, Davy Cottet wrote:
Hi,

I'm happy to announce first releases of Leo 5.0 as a debian/ubuntu packages !
For now it is available on my personal package archive ppa, and I hope it will be on leo's soon.

Let's go straight to the interesting part, thanks to try my builds on your debian based environment :

On Ubuntu :

sudo add-apt-repository ppa:davy39/ppa
sudo apt
-get update
sudo apt
-get leo

On other Debian based system :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B84B2247  
sudo add
-apt-repository "http://ppa.launchpad.net/davy39/ppa/ubuntu utopic main"
sudo apt
-get update
sudo apt
-get leo

Hello,

I am currently using Debian 8, Jessie.  I was not able to follow the instructions in the documentation at the Leo website because I didn't know what the key was to the original repository, so I went looking for other options.

First, Davy, THANK YOU for the above directions!

FYI, Debian no longer uses / supports add-apt-repository.  It is my understanding that only ubuntu systems still support this.  The procedure I used to successfully install Leo on Debian 8 was the following:

1.  I added the key as instructed above.
2.  I manually added the repository to my /etc/apt/sources.list
3.  the command to install leo I needed was:  sudo apt-get install leo
 
The menu item was found under "Development" and Leo appears to be working just fine. 

If I run into any other issues, I will let you know.

Again, THANK YOU for posting this!  I was able to adapt it so that Leo installed on my Debian 8 machine.

Edward K. Ream

unread,
Aug 10, 2017, 5:57:08 AM8/10/17
to leo-editor
On Sun, Aug 6, 2017 at 12:08 AM, AgedLace <aged...@gmail.com> wrote:


I'm happy to announce first releases of Leo 5.0 as a debian/ubuntu packages !
For now it is available on my personal package archive ppa, and I hope it will be on leo's soon.

​Excellent!  Don't let my delay in responding mislead you.  I am thrilled by this development.

Has anyone played with this yet? I'll be upgrading Leo's installation instructions for Linux soon.

Edward
Reply all
Reply to author
Forward
0 new messages