spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.32k stars 1.61k forks source link

Add new icon and scripts for python3 in Linux #1716

Closed spyder-bot closed 9 years ago

spyder-bot commented 9 years ago

From pi...@synchrotron-soleil.fr on 2014-02-02T03:07:57Z

Hello,

while I am preparing the package with python3, I need to install spyder3 script and icons for the python3 version.

So I created a patch to deal with this only on linux (I do not have a windows machine). this pacth install spyder3, spyder3.desktop and a spyder3.png (which is for now a copy of the spyder.png) I am really bad for icon so I do not changed :).

could you apply it or implement a equivalent pacth, so I can support spyder and spyder3.

thanks

Frederic

Attachment: 0002-forwarded-upstream-deal-with-python3-file-installati.patch

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1716

spyder-bot commented 9 years ago

From ccordoba12 on 2014-02-07T05:25:46Z

Thanks Frederic. I'll apply as soon as I can. What about issue #1684 , can I close it?

Status: Accepted
Labels: Component-Python3 Cat-Miscelleneous

spyder-bot commented 9 years ago

From ccordoba12 on 2014-02-12T08:52:14Z

On thing I found strange with your patch: The "spyder" and "spyder3" executable scripts are exactly the same, but shouldn't the last one be something like

! /usr/bin/python3

from spyderlib import start_app start_app.main()

Labels: MS-v2.3

spyder-bot commented 9 years ago

From ccordoba12 on 2014-02-12T11:54:17Z

Ok, I decided to go according to my last comment because several python3 packages in Ubuntu (e.g. IPython and apport-cli) use the shebang

! /usr/bin/python3

Summary: Add new icon and scripts for python3 in Linux (was: [patch] icon and scripts for python3)
Labels: OpSys-Linux

spyder-bot commented 9 years ago

From ccordoba12 on 2014-02-12T12:07:00Z

This issue was updated by revision c7c0f86547be .

Thanks to piccasynchrotron-soleil.fr for the patch

Status: Fixed

spyder-bot commented 9 years ago

From pi...@synchrotron-soleil.fr on 2014-02-16T02:38:22Z

In fact I just did a copy of the file to have two different files for the spyder and spyder3

the shebang line is updated during the build process and indeed I did a mistake and did not set the right one by default. thanks

spyder-bot commented 9 years ago

From ccordoba12 on 2014-02-16T04:55:12Z

Ok, glad to hear my fix was the right one :)