DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th April 2011
Mr-Biscuit Mr-Biscuit is offline
Banned
 
Join Date: May 2008
Posts: 272
Thanked 0 Times in 0 Posts
Default Can the default python be changed to a newer version?

I'd like the system to use python32 in the place of python27. I am aware that a lot of applications are dependent upon py27.
Reply With Quote
  #2   (View Single Post)  
Old 7th April 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

If you want to break a lot of things, go for it.. at least on OpenBSD, there is no executable named "python".

The system administrator can create a link either python2.6 or whatever other version happens to be installed.

Any particular reason why calling python3 manually isn't what you want? anyone on your system would probably assume it to be linked to python2.
Reply With Quote
  #3   (View Single Post)  
Old 7th April 2011
Mr-Biscuit Mr-Biscuit is offline
Banned
 
Join Date: May 2008
Posts: 272
Thanked 0 Times in 0 Posts
Default

I hosed the install and was thinking, "What do I need to do for the next install not to choke?"

Everything kept defaulting to python24 and not 27. Running
Code:
make upgrade-site-packages
kept breaking. Looking around, I saw this http://forums.freebsd.org/showthread.php?t=1390 . Gnome3 will also be rebuilt on the machine and I'd like to try a newer python with it. Ports have http://www.freebsd.org/cgi/ports.cgi...y27&stype=name but only one entry for python32. I know I will need py27-lxml and that Xorg will call for python2x.
Reply With Quote
  #4   (View Single Post)  
Old 7th April 2011
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

You can change it by setting the correct variables for it.

In my experience trying to maintain a dual 2.7/3.1 environment, you do NOT want to use Python 3.x on FreeBSD as the default until it is made that way in ports. Things will break eventually, because not everything supports Python 3.x!
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 7th April 2011
Mr-Biscuit Mr-Biscuit is offline
Banned
 
Join Date: May 2008
Posts: 272
Thanked 0 Times in 0 Posts
Default

Basically, I need to follow the advice in the post I linked and replace 2.6 with 2.7, right?

Alright. Now, what about creating site-packages for versions 27, 31, and 32 ? Trying not to replicate the last install's mistakes.
Reply With Quote
  #6   (View Single Post)  
Old 7th April 2011
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

More or less yes, but B/P to have migrains
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BSD's and the newer Video Drivers shep General Hardware 3 26th March 2011 12:14 PM
Python 2.7 released J65nko News 0 6th July 2010 07:24 PM
Ports Version associated with FreeBSD version rtwingfield FreeBSD Ports and Packages 4 7th June 2010 11:00 PM
Release of Python 2.6.5 and 3.1.2 J65nko News 0 22nd March 2010 09:31 PM
apache with python deadeyes FreeBSD Ports and Packages 1 27th August 2009 01:31 PM


All times are GMT. The time now is 05:39 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick