Archive for October, 2007

Using non-Python files with py2exe

Wednesday, October 31st, 2007

Having used py2exe on a few occasions, each time I’ve stumbled over how to make it include additional data files and exes that my Python code depends on.

I’m writing this entry for personal reference and, just perhaps, I can save someone else the trawl through the docs.

py2exe is a breeze - I’ve used it on Python2.4 and Python2.5 and it ‘just works’ for basic Python code. It works fine with easygui and TKinter code, I’ve had a few troubles with math code (matplotlib, Numpy) but mostly I’ve been able to fix them.

Each investigation took less than 30 minutes and I easily recommend py2exe to distribute Python code.

For reference - see here to add configuration files to the resulting distribution. The ‘configuration files’ can be any files - data, exes, images - whatever you need to include.

You add these files by specifying a list of tuples. Each tuple specifies the destination subdirectory (e.g. ” or ‘destinationDirName’), followed by a list of strings of files to copy.

Here is a simple example - you run it using ‘python setup.py py2exe’ at the commnd prompt.

setup.py:

from distutils.core import setup
import py2exe
# run 'python setup.py py2exe' at command line
# to build the 'dist' distribution directory
setup(console=['mainPythonFile.py'],
data_files=[('destinationDirName',
[r'sourceDirectoryName\aFileToInclude.exe',
r'sourceDirectoryName\dataFile.txt'])]
)

New Services Client - More Moolaa with Yoolaa

Monday, October 15th, 2007

Cliff Jenkins at Yoolaa has created his first screencast under our professional screencast production arm.

Now that their new website is ready Cliff has plans to create a whole set of marketing screencasts and also educational screencasts to communicate their message more effectively.

The title for the first video is ‘More moolaa with yoolaa‘. In Cliff’s words:

“it talks about how you get your customer to pay you earlier, indeed getting 87% of your customers to pay you by the ‘due date.’”

Yoolaa is a local Brighton company, in the past they’ve been associated with the Sussex Innovation Centre.

New Services Site for Professional Screencasts

Monday, October 15th, 2007

Last week we revamped our ShowMeDo Services website with a new look. This is the first time that I’m working with a graphic designer and I have to say that I’m very impressed with the result

Jo and I spent time discussing the main point of the site - it is to give people confidence that we do more than just run ShowMeDo.com and to tell them about our services.

On the site I link to 3 case studies (PasPic, Kwiqq, Apex Auctions) - one for screencasting and two for real-world video.  We also have a costs page which details our screencasting service and hosting plans.

Soon I’ll also be able to demo our lead-generator form which is shown at the end of a video. It is used to hold a viewer’s attention and turning them into a prospective customer.

I have also covered our new Services site on my personal blog where I talk a bit more about professional screencast production.

Siddhi’s Django video on the Weekly Django Roundup

Monday, October 8th, 2007

I’m very pleased to see that Siddhi’s second Django video is mentioned in this month’s Django round-up. Seeing our authors receive community kudos is great! It is also nice to see comments like this one:

“Well impressed by both videos, so much ground covered in 40 minutes. Great for people who wonder whether Django is worth investing time into!”

Siddhi won our competition last month for having the most-played video with his first Django Video. Siddhi actually still holds positions 1 and 5 in our most-popular list of 357 videos!

Jeff Rush’s IPython tutorial wins Most Watched Prize

Friday, October 5th, 2007

Jeff Rush (PSF Advocacy co-ordinator) wins our prize this month for creating the most-watched tutorial video at ShowMeDo. Jeff’s prize is a well-deserved £20 UK Amazon voucher.

Jeff’s ‘The ‘IPython’ Interactive Shell - Part 1‘ (from his ‘A Demonstration of the ‘IPython’ Interactive Shell‘ series) has been viewed 458 times in the last month.

This month we served over 26,000 tutorial videos, almost half for Python eyes. Our most popular videos are a mix about Django, wxPython, development environments (IPython, Wing, SPE, PyDev) and Python code-walkthroughs.

Do get in contact if you’d like to share your own knowledge or join us in our Google Group.

Jeff is our second winner, our first was Siddhi for his incredibly popular Django videos. Steve Holden (PSF) has also blogged about Jeff’s win.

About ShowMeDo:

Learn python programming with our many tutorial videos. See our commercial videos to learn more about Python - the two series cover Programming with Python and Learning Python.

Topics include python’s IDLE and PyDev development environments, debugging with PyDev, python unit-testing with nosetests, the csv module, easygui for user interfaces, Wingware’s Wing IDE, unit-tests and test-driven development.