WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python-testing  (Read 16534 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
python-testing
« on: August 21, 2009, 10:09:06 PM »
This is python built with tk, openssl, sqlite, and bsddb support.  Only as full package and in tcz form for now for testing.  Will split it up and make tce if there are no issues.  Make sure you don't have python, python-devs, or python-minimal installed when you install this one.  This package creates the /usr/local/tce.installed/python file so it will be recognized by the appbrowser as fulfilling the python dependency for extensions dependent on python.

Code: [Select]
Title:          python-testing.tczl
Description: Python programming language.
Version:        2.5.2
Author:         Python Software Foundation.
Original-site:  http://www.python.org/
Copying-policy: Python license: http://www.python.org/psf/license
Size: 11M
Extension_by:   Jason W
Comments:       Main python package.
                ----------
Change-log:     2008/07/23 First version
                2008/12/11 Rebuilt for i486, size, cramfs.
2009/03/26 Placed /usr/local/lib/python2.5/site-packages
in the module path.
Current: 2009/08/21 Built with openssl, bssdb, sqlite, and tk support. and
replaced user.tar.gz with scripting.
« Last Edit: August 21, 2009, 10:11:09 PM by Jason W »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-2.6.2-testing
« Reply #1 on: August 25, 2009, 10:03:34 PM »
Here is the new python-2.6.2-testing with sqlite, tk, and openssl support enabled.  Python-bsddb will be a seperate extension from a seperate source.  This is for the rebuilding of python dependent extensions only, do not use on your normal system.  The extensions built against python - pyqt, pygtk, etc - will be rebuilt against this.

Code: [Select]
Title:          python-2.6.2-testing.tczl
Description: Python programming language.
Version:        2.6.2
Author:         Python Software Foundation.
Original-site:  http://www.python.org/
Copying-policy: Python license: http://www.python.org/psf/license
Size: 13M
Extension_by:   Jason W
Comments:       Main python package.
                ----------
Change-log:     2008/07/23 First version
                2008/12/11 Rebuilt for i486, size, cramfs.
2009/03/26 Placed /usr/local/lib/python2.5/site-packages
in the module path.
Current: 2009/08/26 Built with openssl, sqlite, and tk support. and
replaced user.tar.gz with scripting.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: python-testing
« Reply #2 on: August 26, 2009, 04:54:56 PM »
the path to the python libs are set to /tmp/tcloop/python-2.6.2-testing/usr/local/lib/python2.6 instead of /usr/local/lib/python2.6
This causes python to not find modules that are installed in /usr/local/lib/python2.6 where they should be installed.

A work around is to declare PYTHONPATH before using the modules i.e.: `export PYTHONPATH=/usr/local/lib/python2.6`
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #3 on: August 26, 2009, 05:18:09 PM »
Ok, I think I had this figured out for the original python, I will review and change what needs to be for this one.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #4 on: August 26, 2009, 06:38:21 PM »
There was a typo in the startup script, fixed now.

The python files in /usr/local/bin have to be copied over as real files to set the right paths. They only take up about 23kb.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #5 on: August 26, 2009, 06:48:59 PM »
While on the subject, here is a brief list of extensions that will need rebuilding.  I will do pygobject, pygtk, pyogg-vorbis and pycairo.  Please mention any more that will need a rebuild due to this update.

vte
pyqt
pygtk
pycairo
pygobject
pyogg-vorbis
pysqlite2
psyco

As the extensions are rebuilt, submit them as usual and I will place them in a directory on ibiblio so they can be downloaded and tested.  I don't want to upload anything else to the repo until the all the stuff is rebuilt, tested and ready to replace the current versions.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: python-testing
« Reply #6 on: August 26, 2009, 07:12:26 PM »
I am doing pyqt right now.

I had to rebuild sip

some other maybes that I will rebuild if needed:
bitbake
recordmydesktop-gtk
treeline
psyco
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python-testing
« Reply #7 on: August 27, 2009, 02:33:05 AM »
I will recompile vte in the next days. BTW, vte extension in fact contains two programs, vte and vtemodule. First is used by applications like Terminal, second is a Python module. vte has nothing to do with vtemodule, I will separate them.
Béla
Ham Radio callsign: HA5DI

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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python-testing
« Reply #8 on: August 27, 2009, 05:46:47 AM »
vte.tcel/vte.tczl is submitted. Python module is moved to a separated extension, vte is now Python independent.
Béla
Ham Radio callsign: HA5DI

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

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #9 on: August 27, 2009, 07:29:47 AM »
Great, I will upload them tonite.  Here is where the python related extensions will be stored for now:

http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tce/src/python-update/

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: python-testing
« Reply #10 on: August 27, 2009, 02:03:45 PM »
I have a couple newbie questions about libraries inside python modules.  for instance, in pysqlite2 there is a "/usr/local/lib/python2.x/site-packages/pysqlite2/_sqlite.so".  Q1: Do these libraries require ldconfig to be run?  Q2:  If so, how would this be automated in our current system? Maybe a post-install script to edit /etc/ld.so.conf and run ldconfig?  I have googled for only a short time and did not find anything relevant.  The reason I ask is because I am going to take the liberty of creating the pysqlite2 extension for python2.6 since juanito is on vacation :)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #11 on: August 27, 2009, 02:33:24 PM »
I am pretty sure that those .so files in the site-packages directory do not need ldconfig, at least that is the case with pygtk.  I believe python deals with those.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python-testing
« Reply #12 on: August 27, 2009, 09:40:44 PM »
These extensions are now in the python-update area mentioned above for those who would like to help test with python-2.6.2:

bitbake
psyco
pybsddb
pygobject
pycairo
pyqt
sip
treeline
vte
vtmodule

« Last Edit: August 28, 2009, 05:49:19 AM by Jason W »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: python-testing
« Reply #13 on: August 28, 2009, 03:16:32 AM »
These extensions are now in the python-update area mentioned above for those who would like to help test with python-2.6.2:

...
vte
vtmodule


vte has nothing to do with Python now, it must be moved to the ordinary repository. It works fine without Python, tested on TC 2.2 with the Xfce Terminal application. It is safe to replace current version as it is not only separated from its Python part but version upgraded too.

vtemodule is the Python interface for vte, compiled for 2.6.2
« Last Edit: August 28, 2009, 03:19:02 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: python-testing
« Reply #14 on: August 28, 2009, 05:38:34 AM »
So you want me to remove the current vte which has python module and replace it with the new vte which does not? Making the python module unavailable?