Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 17:00
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Python-2.6.4 plus
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Fri 20 Nov 2009, 01:36    Post subject:  Python-2.6.4 plus  

I packed Python in a few different ways.

Here is the primary package
http://puppy-development.googlecode.com/files/Python%2B-2.6.4-i486.pet

Python only 3.7Mb pet with just the python binary and .py files
<<This is how you should install it for personal use>>

Python plus PyGtk (and dependencies) 6.5MB sfs with .py files and .pyo files (with symlinks for .pyc files) this method will give faster startup times since python will just use the pyo files without having to compile the .py file (the symlink will just make it use the pyo file and not fill up your save file or RAM with all of the pyc files)
<<this is the best method for sfs distribution including remastering the pupXXX.sfs>>

Both are available here:
http://code.google.com/p/puppy-development/downloads/list
Mercurial+TortoiseHG-14.09.pet
Description  And a Mercurial Frontend for google code
pet

 Download 
Filename  Mercurial+TortoiseHG-14.09.pet 
Filesize  728.48 KB 
Downloaded  923 Time(s) 
BZR+Gtk-202.0970.pet
Description  Now we can use launchpad's bazaar version control!!
pet

 Download 
Filename  BZR+Gtk-202.0970.pet 
Filesize  1.51 MB 
Downloaded  882 Time(s) 
PyCAD.pet
Description  Here is a package to test it with
pet

 Download 
Filename  PyCAD.pet 
Filesize  421.73 KB 
Downloaded  874 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Sat 21 Nov 2009, 15:52; edited 4 times in total
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Fri 20 Nov 2009, 01:46    Post subject:  

Our favourite dinosaur strikes again Wink

Both these methods are for running Python files?
Are they also suitable for programing Python in Geany or is a fuller version required?

Thanks technosaurus Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Fri 20 Nov 2009, 02:19    Post subject:  

Both should be full working versions - the big difference is that when you run Python with the pet your save file will grow slightly due to the automatically generated .pyc files from .py files that are called (or .pyo if you pass the -OO flag to python) The sfs already has the .pyo files and a symlink for .pyc which Python automatically detects and uses. This is so that it doesn't have to waste time compiling the bytecode on subsequent runs.

To keep the pyc and pyo files from being generated (and save space in the pet version) you can replace the python symlink to python2.6 with a script that has something like:

Code:
#!/bin/sh
python2.6 -B $@

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Fri 20 Nov 2009, 14:10    Post subject:  

I added a minimal pet with pycairo, pygobject, pygtk and pysqlite included. It includes the required py files libraries and files to build/test new python packages... the only thing that is removed is the 2to3 (python2 to python3) compatibility checks, but it is in the sfs if you really need it for development purposes.

I used the previous script to prevent them from filling up your save file.
To revert to normal operation and speed up your second run (by saving the compiled bytecode to your save file or RAM in pfix=ram mode), this will revert it to normal behavior
Code:
ln -s -f /usr/bin/python2.6 /usr/bin/python


Or if you want it to always build optimized code, use:
Code:
sed -i "s/python2.6 -B $@/python2.6 -O $@/g" /usr/bin/python


Or for optimized and "stripped code, use:
Code:
sed -i "s/python2.6 -B $@/python2.6 -OO $@/g" /usr/bin/python

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Fri 20 Nov 2009, 14:41    Post subject:  

I forgot to mention the differences between this version and the devx version:
    multiprocessor support
    python2 to python3 translation helper


other new stuff
    abstract base classes
    abstract syntax tree
    fractions
    generic path
    io
    numbers
    pydoc_topics
    ssl


missing:
deprecated gopherlib module

to see if it works try:
Code:
/usr/lib/python2.6/webbrowser.py -n http://pupweb.org/desktop

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Sat 21 Nov 2009, 17:13    Post subject:  

Update: added mercurial and bazaar (packaged with guis) to the first post.

Any big requests for other PyGtk pets while I have it installed?

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
didik


Joined: 05 Jan 2009
Posts: 44
Location: Bandung, Indonesia

PostPosted: Sun 29 Nov 2009, 02:19    Post subject:  

Technosaurus,
How do you configure Python installation?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
sikpuppy


Joined: 29 Mar 2009
Posts: 433

PostPosted: Sun 29 Nov 2009, 02:46    Post subject:  

didik wrote:
Technosaurus,
How do you configure Python installation?

With a snake charmer.

_________________
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.
Back to top
View user's profile Send private message MSN Messenger 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Mon 30 Nov 2009, 00:48    Post subject:  

see line 139 of /usr/lib/python2.6/config/Makefile
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
neurino


Joined: 15 Oct 2009
Posts: 360

PostPosted: Fri 04 Dec 2009, 05:47    Post subject:  

technosaurus wrote:
I added a minimal pet with pysqlite included.


Why pysqlite?
Isn't standard Python library included with default sqlite3 module???
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1423
Location: somewhere at the end of rainbow...

PostPosted: Sat 26 Dec 2009, 21:27    Post subject:  

Woof Woof

Trying to install

*PDFminer*
- http://www.unixuser.org/~euske/python/pdfminer/index.html#source

I downloaded your python packages, but when I try to install, an error is showed:
Code:
# python setup.py install
running install
error: invalid Python installation: unable to open /usr/include/python2.6/pyconfig.h (No such file or directory)
#

_________________
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Sat 26 Dec 2009, 22:19    Post subject:  

That would have been in the DEV folder - I can pet it when I get back home after the holidays... or you can get the include files (*.h) straight from the python source package and put them in /usr/include.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Thu 04 Mar 2010, 01:44    Post subject:  

technosaurus wrote:
That would have been in the DEV folder - I can pet it when I get back home after the holidays... or you can get the include files (*.h) straight from the python source package and put them in /usr/include.


ever get back from that holiday of yours lol
still no dev files, I was helping a forum member with adding python to gimp so the "Script-fu" Xtns would work and needed python and pythongtk, so I sent him a link to your package and it worked with the additional package below on 2.14X Smile
So then I went to compile a python app and guess what no dev files, lol

Thanks for the python anyways it works on 2.14x Smile
ttuuxxx

the plugin below should work with any gimp 2.4 series Smile
plus your http://puppy-development.googlecode.com/files/Python%2B-2.6.4-i486.pet

hmmm also noticed you misspelled your package name, should never have spaces in packages names you get a % in the name when you do. http://puppy-development.googlecode.com/files/Python%2B-2.6.4-i486.pet
ttuuxxx
gimp-python_2.4.7.pet
Description 
pet

 Download 
Filename  gimp-python_2.4.7.pet 
Filesize  249.19 KB 
Downloaded  765 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Thu 04 Mar 2010, 02:07    Post subject:  

dev files here:
http://puppy-development.googlecode.com/files/Python+_DEV-2.6.4-i486.pet

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Fri 05 Mar 2010, 01:07    Post subject:  

the package was missing 1 very important script, without it you can't compile gimp with python, below is the script. I altered it so it would work with this version Smile
ttuuxxx
pygtk-codegen-2.pet
Description 
pet

 Download 
Filename  pygtk-codegen-2.pet 
Filesize  464 Bytes 
Downloaded  779 Time(s) 

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0846s ][ Queries: 13 (0.0043s) ][ GZIP on ]