WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Add symlink to python extensions  (Read 2756 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Add symlink to python extensions
« on: September 25, 2010, 04:54:42 PM »
Usually under on Linux python is expected to be in /usr/bin and sources start with

Quote
#!/usr/bin/python

but on TC python is in /usr/local/bin

Adding a symlink to /usr/bin in startup script of python.tcz would increase source portability to/from TC.


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Add symlink to python extensions
« Reply #1 on: September 25, 2010, 05:13:44 PM »
Agreed, and will add it in.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Add symlink to python extensions
« Reply #2 on: October 03, 2010, 05:45:27 AM »
Agreed, and will add it in.

Jason, can you do that? I'm just updating wifi-radar which is erferring also to /usr/bin/python and If not really necessary do not want to patch the upstream source nor to add a symlink creation to wifi-radar startup script.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Add symlink to python extensions
« Reply #3 on: October 03, 2010, 06:56:02 AM »
Ok, I will shoot for it tonight.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Add symlink to python extensions
« Reply #4 on: October 04, 2010, 12:35:08 AM »
Symlink  /usr/bin/python -> /usr/local/bin/python2.7  added.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Add symlink to python extensions
« Reply #5 on: October 04, 2010, 01:23:03 AM »
Symlink  /usr/bin/python -> /usr/local/bin/python2.7  added.

Thanks, it works fine. Same would be good for the python.tcz also.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Add symlink to python extensions
« Reply #6 on: October 04, 2010, 07:14:16 AM »
Ok, I will add it to the old python as well, but at this point I really don't want to promote it's use other than to support existing extensions built against it but rather to migrate to the newer python as much as possible.

And if python 2.7 is already installed, it's /usr/bin/python as well as /usr/local/bin/python will not be overwritten by the old one.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Add symlink to python extensions
« Reply #7 on: October 04, 2010, 07:30:27 AM »
Ok, I will add it to the old python as well, but at this point I really don't want to promote it's use other than to support existing extensions built against it but rather to migrate to the newer python as much as possible.

And if python 2.7 is already installed, it's /usr/bin/python as well as /usr/local/bin/python will not be overwritten by the old one.

Well, it was discussed in another topic without getting to a final decision. Maybe I'm wrong, but for me python.tcz is the python extension while python-2.7 is the new till it will be renamed to python.tcz and the current pytho.tcz to python-2.6 to tcz. Or did I missed something?
« Last Edit: October 04, 2010, 07:32:35 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Add symlink to python extensions
« Reply #8 on: October 04, 2010, 12:06:21 PM »
As we are now dealing with python update and version numbers, I will respond in the python-2.7 thread.