Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Corrected the shebang to be python2 #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Corrected the shebang to be python2 #16

wants to merge 1 commit into from

Conversation

Ape
Copy link

@Ape Ape commented Mar 3, 2011

On many systems /usr/bin/env python points to python3. You should explicitely tell it to use python2.

@l0b0
Copy link
Owner

l0b0 commented Mar 3, 2011

Thanks! Could you perhaps change it to 2.6, since that's effectively the version used for all the development?

@Ape
Copy link
Author

Ape commented Mar 3, 2011

For example my system doesn't have 2.6 installed. I am able to install it if I need, but since mian works fine with 2.7 there is no need for that. So we should leave it just python2.

@pepijndevos
Copy link
Collaborator

There is a matplotlib branch fro py3k, maybe we could support that? I'll create an issue for it if it is something we want.

https://github.com/matplotlib/matplotlib-py3

@l0b0
Copy link
Owner

l0b0 commented Mar 5, 2011

@Ape: OK, that's cool. Anyway, setup.py specifies that it should use 2.6. Pulling...

@pepijndevos: I'm wondering how stable that is - README.txt still mentions only 2.5 and 2.6, which makes it seem like it's not very far yet. But you're welcome to experiment with it, of course.

@l0b0
Copy link
Owner

l0b0 commented Mar 5, 2011

@Ape: Eh, looks like python2 is not present on Ubuntu by default (only python and python2.6 on 10.10) - Could you look for a more portable shebang?

@pepijndevos
Copy link
Collaborator

IMO, setting python to point to python3 is a bad move form the distros. A better long term solution for us would be to support py3k.

quote form IRC:

drnlm fliebel: maptlotlib has a python3 branch on github - there are still issues with the test suite, and not all the backends work, but it's getting there.

@Ape
Copy link
Author

Ape commented Mar 5, 2011

It's true that the ultimate solution would be to go with Python 3. I don't know how nicely matplotlib works with it, but who said we can't use any other libraries. I'd actually prefer a simple drawing library that could just produce an image file.

@pepijndevos
Copy link
Collaborator

Suggestions?

@l0b0
Copy link
Owner

l0b0 commented Jun 25, 2011

A possible solution. Not trivial, not perfect, but it could do the trick. Does anyone have the time to implement and test?

@Fenixin
Copy link
Collaborator

Fenixin commented Sep 22, 2011

More suggestions? The last l0b0 suggestions seems too hacky... don't know what to do. Maybe we can leave it as it is and open a wiki page with a FAQ or known issues.

What do you think?

@macfreek
Copy link

I think the best way to solve this is to make the code both Python2 and Python3 compatible, but admittedly, that takes a bit of work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants