| Author |
Message |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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
| Description |
And a Mercurial Frontend for google code
|

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

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

Download |
| Filename |
PyCAD.pet |
| Filesize |
421.73 KB |
| Downloaded |
633 Time(s) |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Edited_times_total
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 20 Nov 2009, 01:46 Post_subject:
|
|
Our favourite dinosaur strikes again
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
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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 $@ |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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 |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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 |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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?
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
didik

Joined: 05 Jan 2009 Posts: 44 Location: Bandung, Indonesia
|
Posted: Sun 29 Nov 2009, 02:19 Post_subject:
|
|
Technosaurus,
How do you configure Python installation?
|
|
Back to top
|
|
 |
sikpuppy

Joined: 29 Mar 2009 Posts: 433
|
Posted: 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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Mon 30 Nov 2009, 00:48 Post_subject:
|
|
see line 139 of /usr/lib/python2.6/config/Makefile
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
neurino

Joined: 15 Oct 2009 Posts: 360
|
Posted: 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
|
|
 |
Dingo

Joined: 11 Dec 2007 Posts: 1398 Location: somewhere at the end of rainbow...
|
Posted: 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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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.
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: 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
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
ttuuxxx
the plugin below should work with any gimp 2.4 series
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
| Description |
|

Download |
| Filename |
gimp-python_2.4.7.pet |
| Filesize |
249.19 KB |
| Downloaded |
531 Time(s) |
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Thu 04 Mar 2010, 02:07 Post_subject:
|
|
dev files here:
http://puppy-development.googlecode.com/files/Python+_DEV-2.6.4-i486.pet
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 10720 Location: Ontario Canada,Sydney Australia
|
Posted: 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
ttuuxxx
| Description |
|

Download |
| Filename |
pygtk-codegen-2.pet |
| Filesize |
464 Bytes |
| Downloaded |
556 Time(s) |
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games

|
|
Back to top
|
|
 |
|